Bug Description
The opencode integration dispatches commands as opencode run --command <name>, but opencode v2 removed --command. Every workflow command step fails immediately with Unrecognized flag: --command (exit 1).
Tracking report — no spec-kit-side workaround is proposed. The integration can only be fixed once upstream decides the v2 headless command path. Upstream: anomalyco/opencode#49903.
Steps to Reproduce
- Install opencode v2 (
opencode --version → 2.0.8).
- Run a workflow command step with
command: speckit.specify, integration: opencode.
- Spec Kit emits
opencode run --command speckit.specify ….
Expected Behavior
The command is dispatched and runs.
Actual Behavior
opencode run --command speckit.specify … → ERROR: Unrecognized flag: --command in command opencode run, exit 1 (failed in ~54 ms in run cockpit-d012782e9339).
Specify CLI Version
1.0.9.dev0
AI Agent
opencode
Operating System
Ubuntu 24.04.5 LTS (Linux 6.17.0-1032-oem, x86_64)
Python Version
3.12.3
Error Logs
$ opencode run --command speckit.specify "build a login page"
ERROR
Unrecognized flag: --command in command opencode run
exit=1
Additional Context
AI Disclosure
Drafted with an AI assistant (OpenCode agent, model: DeepSeek V4.1 Flash); commands and logs reproduced on the affected machine and reviewed by the reporter before posting.
Bug Description
The opencode integration dispatches commands as
opencode run --command <name>, but opencode v2 removed--command. Every workflow command step fails immediately withUnrecognized flag: --command(exit 1).Tracking report — no spec-kit-side workaround is proposed. The integration can only be fixed once upstream decides the v2 headless command path. Upstream: anomalyco/opencode#49903.
Steps to Reproduce
opencode --version→ 2.0.8).command: speckit.specify,integration: opencode.opencode run --command speckit.specify ….Expected Behavior
The command is dispatched and runs.
Actual Behavior
opencode run --command speckit.specify …→ERROR: Unrecognized flag: --command in command opencode run, exit 1 (failed in ~54 ms in runcockpit-d012782e9339).Specify CLI Version
1.0.9.dev0
AI Agent
opencode
Operating System
Ubuntu 24.04.5 LTS (Linux 6.17.0-1032-oem, x86_64)
Python Version
3.12.3
Error Logs
Additional Context
src/specify_cli/integrations/opencode/__init__.py:62-67appends--command.-pflag instead ofrunsubcommand #2409, [Bug]: Amp dispatch sends-p/--model/--output-format— none of these exist in the Amp CLI #4580.triage-can-wait) until upstream decides, to prevent duplicate reports.AI Disclosure
Drafted with an AI assistant (OpenCode agent, model: DeepSeek V4.1 Flash); commands and logs reproduced on the affected machine and reviewed by the reporter before posting.