Repository navigation
Description
What is broken, in plain words
Fleet sessions are being killed by the OpenCode client's 10-second first-output deadline. When a scheduled lane wave seats ~10 sessions inside a minute onto the same few workhorse doors, the doors queue past 10s, every candidate in the route trips the deadline in the same turn, and the turn ends failed instead of waiting out the route cooldown and retrying a live leg. The session is lost mid-task: a lane that was checkpointing, sweeping, or binding a queue task simply stops.
Evidence (laptop server 127.0.0.1:13420, opencode.db, window 2026-11-08T18:10Z–2026-11-09T02:10Z)
81 sessions ended failed with the identical error provider.transport / "No response output within 10000ms":
| hour (UTC) | deaths |
|---|---|
| 17 | 18 |
| 18 | 30 |
| 19 | 7 |
| 20 | 26 |
Named sessions (verbatim idle.outcome rows):
ses_e5e41f73dc2ffeXtjBHfPlEsgd— Queue lane (scheduled) - code 20:00, died 20:08 mid-checkpoint; last text:repo-queue: primary queue store failed on /checkpoint (exit 5): checkpoint_task: task 14030 is not claimed by repo-worker-codeses_e5e41f6c26cffed2YLdfEQyJBz— Queue lane (scheduled) - code 20:00, died 20:09 immediately after blocking task 14029ses_e5e42091170ffef0WR74Z0IPyW— Fleet conductor 19:40, died 20:12 mid-sweep (it was polling post-nudge session activity)ses_e5e41fa5585ffeFA3Q6M5XsU9J— explore subagent under task 13835, died 20:00 ("No response output within 10000ms")
The route does fail over — and still runs out. route_attempt for ses_e5e42091170ffef0WR74Z0IPyW (4 consecutive timeout rows, then the turn ends):
1794190242512 opencode-go.developing-today-0/deepseek-v4.1-flash timeout Transport Timeout
1794190255506 opencode-go.developing-today-0/deepseek-v4.1-flash timeout Transport Timeout
1794190271205 opencode-go.popesdrew/deepseek-v4.1-flash timeout Transport Timeout
1794190294012 opencode-go.drewrypope/deepseek-v4.1-flash timeout Transport Timeout
The deadline is being hit at a real rate, and the legs routinely exceed it. 8h route_attempt totals:
| provider/model | success | Transport/Timeout |
|---|---|---|
| openai.main/gpt-6-luna | 19,757 | 1,166 |
| opencode-go.developing-today-0/deepseek-v4.1-flash | 2,085 | 407 |
| _muse/muse-spark-1.3-contributor | 1,464 | 158 |
| _vibe/deepseek-v4-1-flash-1017 | 4,194 | 217 |
Observed first-token maxima in the last 2h: gpt-6-luna 15,738 ms, deepseek-v4.1-flash 10,185 ms, muse-spark 10,428 ms — i.e. these legs cross a 10 s deadline as a matter of course, and a burst pushes every door over it at once.
The waves are the trigger. Ten scheduled code lanes started between 20:00:01 and 20:00:52 local on the same opencode-route/workhorse chain (workhorse-ordered → deepseek-flash-plan → workhorse-weighted); 26 sessions died in the 20:00 hour.
Why this is not #4370 or #3325
- fleet session deaths rotated legs: provider.transport timeouts on the gpt-6-luna leg and cline-pass leg wall/rate-limit deaths are not tracked by #3325 #4370 (closed completed 2026-11-08T10:51Z) was closed on the verdict that per-leg shedding was "superseded" because
bin/opencode-route-proxy.mjswas retired. That premise is false at main today:bin/opencode-route-proxy.mjsis tracked,f61b2af25e("fix(route-proxy): timeout each leaf first response") is an ancestor oforigin/main, and the death class returned at 81/8h after the closure. - workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 (open) is the quota-exhausted-leg class (429 / muse-spark). This is the first-output-deadline class, which reaches the session as
provider.transport, notprovider.rate-limit.
Acceptance test (one line)
Replaying a 10-session scheduled lane wave on opencode-route/workhorse, zero sessions end with provider.transport: No response output within 10000ms — either the deadline is sized above the observed leg p99 (or disabled for this chain), or a turn whose candidates all trip it retries after the route cooldown and completes, shown by a route_attempt timeout row set followed by a success row in the same turn.
Pointers for the fix
- Client:
packages/core/src/session/runner/step.tsbuilds the syntheticTransportErrorfor the deadline (codeTimeout) andpackages/core/src/model-route.tsdefaultsfirstTokenTimeoutMsto 10_000. The fork may need to retry after cooldown when the last candidate times out. - Config:
.opencode/opencode.jsoncsets nohealth.firstTokenTimeoutMson the workhorse chain, so the 10 s default applies to every leg. - Concurrency: the scheduled lane wave starts ~10 sessions inside a minute on the same three DeepSeek doors (see also opencode-claimant: handed-off tasks are never launched — executed_lane/session_id stay null across repeated claim→handed_off→park cycles #6533, claimant cap 36 saturated).
Activity
developing-today commentedon Nov 9, 2026
CODE-2349
dezren39 commentedon Nov 9, 2026
Priority express — Drew, 2026-11-08 ~21:53 CST
Drew directed this issue be priority-expressed.
priority/highis already set. Treat this as front-of-queue for the code pilot.failedinstead of waiting out the route cooldown and retrying a live leg.dezren39 commentedon Nov 9, 2026
Builder's-advocate census 2026-11-09 04:10 CST (attention feed, 61 entries): 6 more sessions dead on 'No response output within 10000ms' — ses_e5e40c7e7deffeBbo14RenPyOT (child of improvement-creator lane B), ses_e5e40d5733dffeAtHhvDBQ6r (via parent Subagent failed), queue tasks 14093/14101/13777/13709, plus Plans Space freshness keeper ses_e5e40cf9d6fffeLp5jIj9mjP5P8. Same 10s first-output signature. Note: these coincide with the #7991 auth-outage window, so some may be заболевших by the same route stall rather than the deadline per se — but they failed at output-wait, not auth, and are worth counting separately.
dezren39 commentedon Nov 10, 2026
🤖 Agent note · triaged
task/small-fix· priority/high · effort/mrepo-health:v1:fix:developing-today/code:issue:7927→ queuerepo-health-code-pilot. Enqueue result: enqueued new task 14574 (queue repo-health-code-pilot, status queued)5 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · picked up
health.firstTokenTimeoutMs: 60000on the workhorse chain routes in.opencode/opencode.jsonc(fleet-stalling: scheduled lane waves lose every route candidate to the 10s first-output deadline — 81 sessions dead in 8h #7927: the 10s default mass-killed scheduled lane waves)queue/14574-7927-first-token-timeout, then merge under standing criteriadezren39 commentedon Nov 10, 2026
🤖 Agent note · parked (awaiting CI)
health.firstTokenTimeoutMs: 60000on the workhorse chain routes +deepseek-flash-plan+deepseek-flashin.opencode/opencode.jsonc. Config guard (bin/check-opencode-metered-providers.mjs) passed; JSONC parse verified.fixed_merged; if checks fail on the config, fix forward on branchqueue/14574-7927-first-token-timeout.dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked (awaiting CI; CodeRabbit Major dispositioned)
Merge pull request #8120 from developing-today/queue/14574-7927-first…
dezren39 commentedon Nov 10, 2026
🤖 Agent note · done (fixed_merged)
fixed_merged.