[BUG] OpenCode 2.0.21 incompatible with bmad-loop 0.13.0 opencode-http adapter
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start at the shipped opencode-http adapter and its health-check entry point, then inspect how it invokes opencode serve and validates /global/health. Compare that expectation with the OpenCode 2.0.21 behavior. Done means OpenCode 2.x works through the adapter or unsupported versions produce a clear error instead of retrying three times.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
bmad-loop cannot start OpenCode sessions using the shipped opencode-http adapter. The OpenCode server starts successfully, but the adapter never considers it healthy and aborts after three retries.
Environment:
bmad-loop: 0.13.0
OpenCode: 2.0.21
Adapter: opencode-http
OS: Arch Linux
Steps to reproduce
Run a job using opencode-http with opencode2 installed
Expected behavior
bmad-loop should either:
Support OpenCode 2.x APIs, or
Detect unsupported OpenCode versions and provide a clear error message.
Actual behavior
bmad-loop fails with:
bmad_loop.adapters.opencode_htp.OpencodeServerError:
could not start opencode serve after 3 attempts
(server did not become healthy in time)
OpenCode Server starts successfully on each attempt:
server listening on http://127.0.0.1:43389
server listening on http://127.0.0.1:33445
server listening on http://127.0.0.1:50769
Screenshots
No response
Which area is this for?
CLI adapters & profiles
bmad-loop Version
0.13.0
Which coding CLI are you using?
Other
Operating System
Linux
Relevant log output
Visiting /global/health on the running OpenCode 2.0.21 server does not return the JSON response expected by the adapter.
Diagnostic dump (bmad-loop diagnose)
bmad-loop diagnostic dump (sanitized)
Identifiers are pseudonymized; code, prompts, paths and free text are redacted. Safe to share.
Environment
- bmad-loop version: 0.13.0
- python: 3.13.13
- os: Linux 7.2.4-arch1-2
- sys.platform: linux
- win32 on WSL distro path: no
- multiplexer: TmuxMultiplexer
- tmux: tmux 3.7c
- git: git version 2.55.0
- schema / generated: v4 @ 2026-10-01T05:51:58Z
Run 20261001-004938-d0f5 (story)
- project:
project-a99323e11530 - code root differs from project: no
- started: 2026-10-01
- state: finished=False stopped=False paused=False
- epic / sweep_cycle: 3 / 1
- tasks: 1
- phase histogram: dev-running=1
- token totals: cache_creation_tokens=0, cache_read_tokens=0, input_tokens=0, output_tokens=0, total=0, weighted=0
- sessions by status: —
- sessions by role: —
Tasks
| alias | epic | phase | att | gen | esc-upto | rev | committed | spec | dw | sessions | weighted | raw |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
s3-c5d7108c1737 |
3 | dev-running | 1 | 0 | 0 | 0 | False | False | 0 | 0 | 0 | 0 |
Journal
- entries: 8
- duration (s): 90.853
- escalations / defers / plugin-errors: 0 / 0 / 0
- kind histogram: run-crash=1, run-start=1, session-end=1, session-start=1, story-start=1, target-branch=1, worktree-opened=1, worktree-seed-skipped=1
Per-task event counts:
s3-c5d7108c1737: story-start=1, worktree-opened=1, worktree-seed-skipped=1story-c835c875bc40: run-crash=1, session-end=1, session-start=1
Run-dir files (counts only)
- logs: 3 files, 129 bytes, 3 lines
- tasks: 1 files, 945 bytes
- worktrees: 2691 files, 33221449 bytes
Confirm
- I've searched for existing issues
- If I attached a diagnose dump, I reviewed it and confirmed it contains no PII, secrets, or project-specific information
- I'm using the latest version
- Ngôn ngữ chính
- Python
- Star
- 174
- Fork
- 72
- Merge trung bình
- 19 giờ 25 phút
- Pull request đã merge (30 ngày)
- 84
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bmad-code-org/bmad-loop
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
bmad-code-org/bmad-loop#973 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bmad-code-org/bmad-loop#965 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
bmad-code-org/bmad-loop#1004 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
bmad-code-org/bmad-loop#1002 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tickets: an injected plan_halt result for a built plan escalates with stopped-attempt wordingĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 36/100
bmad-code-org/bmad-loop#972 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bmad-code-org/bmad-loop
Issue tương tự
-
URLValidator ignores an explicit empty scheme allowlistCó thể đã có người làm @IlyaKhalafi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tortoise/tortoise-orm#2393 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
frappe/frappe_docker#2046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Weekly link check failedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
complete_box_iou_loss / complete_box_iou: NaN gradients for zero-height boxes, NaN for point boxesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
AXI SMU SPEC
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
tenstorrent/tt-oca-harness#3556 ·
Maintainer thường phản hồi trong vòng 1 ngày