GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) · Issue #5294 · developing-today/code

opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b)#5294
Copy link
Assignees
dezren39
Labels
kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

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).
  • runCompletion does fall through on per-leaf transport errors, but only while the signal is not aborted; the OpenCode client's ~10 s no-output window (provider.transport "No response output within 10000ms", 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) kills the session first, and a client abort is terminal in the walk.
  • Net effect: a transport-timeout leg is never shed in time — ~30 fleet sessions died this way on 2026-11-01 (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).

Scope

  • 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.
  • Verify whether the client's ~10 s provider.transport window is configurable for proxied routes; if the proxy-side fix cannot beat it, record that on 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 with the exact client setting named.

Out of scope: in-stream pre-content error shedding (task 8932, #3325), mid-stream fallthrough, route redesign.

Acceptance criteria

  • A transport-timeout leg is shed like a quota-exhausted leg: walk continues, session completes on a live leg.
  • Per-leg timeout configurable + documented next to TIMEOUT_MS; responding legs unchanged.
  • 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 acceptance (b) satisfied by the merged fix, or closed out on 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 with provider/client-side evidence.

Refs: #4370 (acceptance (b)), #3325, task 8950, task 7380.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    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.

  3. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    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.

  5. github-actions
    assigned
    dezren39
    on Nov 4, 2026
  6. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 12213
    • Found via: queue claim
    • Task: Triaging issue 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) at current main — execution lane is direct.
    • Expectation: Triage verdict with evidence on issue opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294; if real, a scoped fix packet follows.
    • Links: issue opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294
  7. developing-today
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 8, 2026
  8. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 12213
    • Found via: queue claim
    • Task: Triage verdict for issue 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).
    • 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.
    • Parent: issue 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 stays OPEN for its other death classes; its acceptance (b) was scoped to the retired proxy and is closed out by this verdict.
    • Links: issue opencode-route-proxy: per-leg first-response timeout — shed transport-timeout legs inside the client window (#4370b) #5294; PR fix(route-proxy): per-leaf first-response timeout (#5294) #5335; issue 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; commit e8b4cdc
  9. developing-today
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  10. developing-today
    closed this as not plannedon Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.