Skip to content

fix(bin): launch opencode v2 workers with --standalone and the model in config - #9

Merged
keenvc merged 3 commits into
mainfrom
fm/fm-opencode-v2-launch
Sep 29, 2026
Merged

keenvc merged 3 commits into
mainfrom
fm/fm-opencode-v2-launch

Conversation

@keenvc

@keenvc keenvc commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Launch OpenCode 2.x workers with opencode --standalone --prompt instead of the removed top-level --model flag.
  • Write the resolved model into OPENCODE_CONFIG_CONTENT (top-level model or agent.build when effort variant applies).
  • Update harness reference and dispatch-profile tests; live fm-spawn proof on openrouter/stealth/space-bunny-alpha.

Test plan

  • tests/fm-spawn-dispatch-profile.test.sh (opencode cases)
  • bin/fm-lint.sh
  • Live scout spawn via fm-spawn.sh with space-bunny-alpha

Made with Cursor

keenvc and others added 3 commits September 29, 2026 09:17
OpenCode 2.x removed the interactive --model flag; carry the resolved model in OPENCODE_CONFIG_CONTENT and launch with --standalone so the model and permission block are honored off the shared service.

Co-authored-by: Cursor <cursoragent@cursor.com>
Always write the resolved model as OPENCODE_CONFIG_CONTENT top-level model on 2.x, drop unverified agent.build variant JSON, and keep the 1.x --model launch shape when opencode --version reports major 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
Spawn tests prepend a fakebin to PATH; fm-spawn now probes opencode
--version for the v1/v2 launch gate, so every spawn fakebin must answer it.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keenvc
keenvc merged commit 9928ab1 into main Sep 29, 2026
18 of 19 checks 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