Skip to content

fix(spawn): launch OpenCode workers with opencode mini - #16

Open
jorguez96 wants to merge 2 commits into
mainfrom
fix/opencode-v2-launch
Open

jorguez96 wants to merge 2 commits into
mainfrom
fix/opencode-v2-launch

Conversation

@jorguez96

@jorguez96 jorguez96 commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

OpenCode 2.0.12 rejects --model on the top-level opencode command, so a worker launch that passed the model there failed before the session started. The interactive client that still accepts --model and --prompt, and stays open for later instructions, is opencode mini. opencode run also accepts --model, but it exits after the message, so it is not the supervised launch.

Effort is still omitted. Mini has no effort flag.

The same release refuses a plugin that does not default-export an id and a setup function. The five primary plugins in this repo now do that, and register the existing bash, session, and prompt behavior on the version 2 hooks. The chrome-devtools and lavish plugins in the local OpenCode config were updated the same way and are not part of this pull request.

Verification

  • opencode 2.0.12: opencode --model … --prompt … exits with Unrecognized flag: --model.
  • opencode mini --model … --prompt … accepts those flags.
  • bin/fm-test-run.sh tests/fm-spawn-dispatch-profile.test.sh passed, including the OpenCode launch assertion.
  • After opencode service restart, opencode plugin list shows all seven plugins by id and the log has no new "failed to load plugin" line.
  • bin/fm-lint.sh and bin/fm-doc-audience-check.sh passed.

Busy-queue screen behavior was last verified on the full-screen client at 1.18.4 and was not re-checked on mini.

OpenCode 2.0.12 rejects --model on the top-level command. The interactive
client that accepts --model and stays up for later instructions is
opencode mini.
OpenCode 2 rejects a plugin that does not default-export an id and setup.
The existing hook functions stay, and a V2 entry registers them.
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