nexus/packages/adapters/opencode-local/src/server
Dotta f81d37fbf7 fix(heartbeat): prevent false process_lost failures on queued and non-child-process runs
- reapOrphanedRuns() now only scans running runs; queued runs are
  legitimately absent from runningProcesses (waiting on concurrency
  limits or issue locks) so including them caused false process_lost
  failures (closes #90)
- Add module-level activeRunExecutions set so non-child-process adapters
  (http, openclaw) are protected from the reaper during execution
- Add resumeQueuedRuns() to restart persisted queued runs after a server
  restart, called at startup and each periodic tick
- Add outer catch in executeRun() so setup failures (ensureRuntimeState,
  resolveWorkspaceForRun, etc.) are recorded as failed runs instead of
  leaving them stuck in running state
- Guard resumeQueuedRuns() against paused/terminated/pending_approval agents
- Increase opencode models discovery timeout from 20s to 45s
2026-03-12 17:24:50 -04:00
..
execute.ts Fix opencode-local adapter: parser, UI, CLI, and environment tests 2026-03-07 19:01:04 +00:00
index.ts Merge PR #62: Full OpenCode adapter integration 2026-03-06 15:23:55 +00:00
models.test.ts Add OpenCode provider integration and strict model selection 2026-03-05 15:24:20 +01:00
models.ts fix(heartbeat): prevent false process_lost failures on queued and non-child-process runs 2026-03-12 17:24:50 -04:00
parse.test.ts Fix opencode-local adapter: parser, UI, CLI, and environment tests 2026-03-07 19:01:04 +00:00
parse.ts Fix opencode-local adapter: parser, UI, CLI, and environment tests 2026-03-07 19:01:04 +00:00
test.ts Address PR feedback: keep testEnvironment non-destructive, warn on swallowed errors 2026-03-07 19:15:10 +00:00