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

Đang mở
#4,639 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
138k
Fork
12.4k
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
136

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/spec-kit

Tất cả issue của github/spec-kit

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.