Skip to content

Fix FreshOpenCode materialization persistence#456

Merged
danshapiro merged 2 commits into
mainfrom
fix/freshopencode-materialization-persist
Jun 21, 2026
Merged

Fix FreshOpenCode materialization persistence#456
danshapiro merged 2 commits into
mainfrom
fix/freshopencode-materialization-persist

Conversation

@danshapiro

Copy link
Copy Markdown
Owner

Summary

  • emit FreshOpenCode materialization as soon as OpenCode returns the durable ses_* id
  • route materialization through the global websocket/client state path so persisted panes and tab snapshots store the durable session ref
  • detach stale placeholder subscriptions after materialization
  • document the gh account preference in AGENTS.md

Verification

  • npm run test:vitest -- test/unit/client/lib/fresh-agent-ws.test.ts test/unit/client/store/tabRegistrySync.test.ts --run
  • npm run test:vitest -- --config vitest.server.config.ts test/unit/server/fresh-agent/opencode-serve-adapter.test.ts test/unit/server/ws-handler-fresh-agent.test.ts --run
  • npm run typecheck
  • git diff --check
  • FRESHELL_TEST_SUMMARY='freshopencode materialization second-pass validation' npm run check

@danshapiro danshapiro merged commit 10cb9aa into main Jun 21, 2026
1 check passed
@danshapiro danshapiro deleted the fix/freshopencode-materialization-persist branch June 21, 2026 20:37
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