Skip to content

fix: support current opencode dev checkouts - #58

Merged
kitlangton merged 1 commit into
anomalyco:mainfrom
kitlangton:current-opencode-dev
Aug 14, 2026
Merged

fix: support current opencode dev checkouts#58
kitlangton merged 1 commit into
anomalyco:mainfrom
kitlangton:current-opencode-dev

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Make opencode-drive start --dev work with current OpenCode V2 development checkouts and fail clearly for unsupported checkouts.

Before / After

Before: Drive always launched scripted servers with serve --service. Current V2 uses serve --register, so the server exited before its simulation backend became ready. Older checkouts without packages/simulation instead timed out waiting for endpoints they could never expose.

After: Drive selects the serve registration flag from the checkout shape and rejects checkouts without simulation support during preparation with an actionable error.

How

  • packages/drive/src/instance/dev.ts validates packages/simulation and records the checkout's service flag.
  • packages/drive/src/instance/runtime.ts uses that flag when launching the scripted server.
  • packages/drive/test/instance/dev.test.ts covers legacy standalone V2, current V2, and unsupported checkouts.

Testing

  • bun run check
  • bun run test (265 tests passed)
  • End-to-end smoke run against the current OpenCode V2 checkout: launched server and TUI, submitted a prompt, received a simulated response, captured a screenshot, and exited cleanly

@kitlangton
kitlangton merged commit 72cc762 into anomalyco:main Aug 14, 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.

1 participant