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

Aperta
#4,639 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start in src/specify_cli/integrations/opencode/init.py:62-67 and inspect how the integration builds the opencode command. Check anomalyco/opencode#49903 for the upstream v2 headless command decision and reproduce the reported command failure. This issue is done when workflow command steps dispatch successfully on opencode v2 using the supported upstream path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

triage-can-wait
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
  • src/specify_cli/integrations/opencode/__init__.py:62-67 appends --command.
  • The slash prompt is synthesized internally, so users cannot avoid it.
  • Upstream report: anomalyco/opencode#49903. Related: #2416, #2409, #4580.
  • Requested handling: tracking issue (e.g. 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.

Lingua principale
Python
Stelle
138k
Fork
12.4k
Merge medio
3g 6h
PR unite (30g)
136

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/spec-kit

Tutte le issue di github/spec-kit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.