You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294
opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370 acceptance (b))
Implementation slice scoped by triage task 8950 (lane W, 2026-11-04) extending #3325 leg-shedding to the #4370 death classes. Findings and full evidence are on #3325 (task 8950 comment) and #4370.
Problem (verified at main, blob 70f01618, bin/opencode-route-proxy.mjs, 1095 lines)
callLeaf's fetch passes only the shared walk signal — there is no per-leg timeout. A hung/slow leg holds the walk; the only cap is the whole-walk TIMEOUT_MS (line 62, default 1,200,000 ms).
Per-leaf first-response (headers) timeout in bin/opencode-route-proxy.mjs, configurable via env in the existing OPENCODE_ROUTE_PROXY_* pattern, sized well under the client no-output window; on timeout, record the attempt (outcome timeout, tag Transport, failedOverTo set) and continue the walk.
Proxy tests: hung first leg sheds to a live second leg inside the timeout; ledger row written.
agent-note:v1
state: picked up
task 9238 (small_fix, #5294) claimed by lane 7b47536b-c162-444c-be8a-3a9538cc4cb5 (OpenChamber scheduled lane); revalidating current GitHub state and implementing the scoped per-leg first-response timeout.
agent-note:v1
state: handed off
task 9238 (small_fix, #5294) completed as pr_opened after opening and freshly verifying PR #5335. The proxy now bounds each leaf's first response at 3000 ms by default, below OpenCode's configurable experimental.model_routes.<route>.health.firstTokenTimeoutMs default of 10000 ms. Targeted proxy suite: 35 passed; PR checks are green. Queue labels cleared at terminal completion.
Verdict: superseded — validated no longer applicable. Issue opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294 scopes its fix entirely to bin/opencode-route-proxy.mjs. That file was retired the same day this slice was filed: commit e8b4cdc (2026-11-04, "rewire OpenClaw to the server facade and retire the route proxy (opencode#1153)") deleted bin/opencode-route-proxy.mjs (1221 lines), its test, and its start script. Verified fresh this run: the file is absent from bin/ at current main (d94e6c7) and git ls-files returns nothing for it. There is no per-leg timeout left to add — the walk the issue describes no longer exists; proxied routes now go through the server facade.
PR fix(route-proxy): per-leaf first-response timeout (#5294) #5335: opened 2026-11-04T07:13Z, hours before the retirement landed; its diff touches only the two retired files, so it can never merge and contains nothing salvageable into main (the successor surface is the server facade, not this file). Closed as superseded with a note there.
Activity
dezren39 commentedon Nov 4, 2026
agent-note:v1
state: picked up
task 9238 (small_fix, #5294) claimed by lane 7b47536b-c162-444c-be8a-3a9538cc4cb5 (OpenChamber scheduled lane); revalidating current GitHub state and implementing the scoped per-leg first-response timeout.
dezren39 commentedon Nov 4, 2026
agent-note:v1
state: handed off
task 9238 (small_fix, #5294) completed as
pr_openedafter opening and freshly verifying PR #5335. The proxy now bounds each leaf's first response at 3000 ms by default, below OpenCode's configurableexperimental.model_routes.<route>.health.firstTokenTimeoutMsdefault of 10000 ms. Targeted proxy suite: 35 passed; PR checks are green. Queue labels cleared at terminal completion.developing-today commentedon Nov 8, 2026
🤖 Agent note · picked up
developing-today commentedon Nov 8, 2026
🤖 Agent note · done
bin/opencode-route-proxy.mjs. That file was retired the same day this slice was filed: commit e8b4cdc (2026-11-04, "rewire OpenClaw to the server facade and retire the route proxy (opencode#1153)") deletedbin/opencode-route-proxy.mjs(1221 lines), its test, and its start script. Verified fresh this run: the file is absent frombin/at current main (d94e6c7) andgit ls-filesreturns nothing for it. There is no per-leg timeout left to add — the walk the issue describes no longer exists; proxied routes now go through the server facade.