Skip to content

Fix FreshOpenCode restart recovery routing#473

Merged
danshapiro merged 27 commits into
mainfrom
fix/zrrj-freshopencode-recovery
Jun 23, 2026
Merged

Fix FreshOpenCode restart recovery routing#473
danshapiro merged 27 commits into
mainfrom
fix/zrrj-freshopencode-recovery

Conversation

@danshapiro

Copy link
Copy Markdown
Owner

Summary:

  • Make FreshOpenCode restart recovery route-aware so durable session mutations require the same cwd route.
  • Keep recovered no-cwd sessions readable but not mutable, and avoid treating placeholder ids as durable sessions.
  • Harden client reconnect state, snapshot invalidation, fake OpenCode route behavior, and terminal retention-loss coalescing.

Verification:

  • npm run typecheck
  • npm run test:e2e -- test/e2e-browser/specs/freshopencode-restart-recovery.spec.ts
  • npm run test:vitest -- --run --config vitest.server.config.ts test/unit/server/fresh-agent/opencode-serve-adapter.test.ts test/unit/server/ws-handler-fresh-agent.test.ts test/unit/server/ws-handler-fresh-agent-lifecycle-parity.test.ts test/server/ws-coding-cli-events.test.ts
  • npm run check
  • npm run test:status reports full-suite success for 69ffb2c with dirty:0

@danshapiro danshapiro merged commit 8aa44d5 into main Jun 23, 2026
1 check passed
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