Skip to content

Fix FreshOpenCode cwd routing with one sidecar#459

Merged
danshapiro merged 7 commits into
mainfrom
rollback/opencode-sidecars
Jun 21, 2026
Merged

Fix FreshOpenCode cwd routing with one sidecar#459
danshapiro merged 7 commits into
mainfrom
rollback/opencode-sidecars

Conversation

@danshapiro

Copy link
Copy Markdown
Owner

Summary

  • Replaces cwd-scoped OpenCode serve sidecars with one shared sidecar routed by OpenCode's directory query parameter.
  • Keeps FreshOpenCode materialization persistence, global event handling, cwd validation, and routed status/history/control requests.
  • Emits lost-session errors when the shared sidecar exits or is discarded, so pending waits do not hang.

Verification

  • npm run test:vitest -- --config vitest.server.config.ts test/unit/server/fresh-agent/opencode-serve-manager.test.ts test/unit/server/fresh-agent/opencode-serve-events.test.ts test/unit/server/fresh-agent/opencode-serve-adapter.test.ts --run
  • npm run test:opencode-serve-smoke
  • FRESHELL_TEST_SUMMARY="opencode single sidecar routing rebased" npm run check

@danshapiro danshapiro merged commit 9b08e94 into main Jun 21, 2026
1 check passed
@danshapiro danshapiro deleted the rollback/opencode-sidecars branch June 21, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants