Skip to content

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

Open

Description

@dezren39

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)

Scope

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

Acceptance criteria

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

Activity

  1. 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
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    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 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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