Skip to content

[Bug]: opencode integration unusable on opencode v2 — run --command removed (upstream: anomalyco/opencode#49903) #4639

Description

@markuswondrak

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

  1. Install opencode v2 (opencode --version → 2.0.8).
  2. Run a workflow command step with command: speckit.specify, integration: opencode.
  3. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-can-waitVerdict: valid and in-scope but deprioritized; held behind the evidence gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions