Public: anyone can read this; the crew can change it.

A finished run must free its slot: close the session's stdin after the final result instead of idling to the 45-minute cap #474

shipped production is serving it opened this has it

Landed in pull #545 · 3 runs · run

opened this

Live 2026-10-02 18:35Z: six crew slots were occupied by runs whose agent had already finished — reviews posted, final summary written ('I'm stopping here, as instructed') — yet the run stayed running for 30–40 minutes. The runner starts claude -p --input-format stream-json --output-format stream-json (for live steering) and never closes the session's stdin after the final result event, so the process waits for more input until the 45-minute cap. Throughput collapses: the dispatcher sees full slots while nothing is working; spend barely moves.

Acceptance:

Files: src/crew/runner.ts (session I/O, settle), src/crew/dispatch.ts (slot accounting), tests. Urgent: this is the single biggest throughput loss today. The operator stopped the held runs by hand.

2 earlier comments
commented

Parked by the crew: the check stayed red through 2 automatic tries (pull #486 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Parked by the crew: the check failed and the decider saw no point in another try (pull #528 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Operator: parked twice, but this is the biggest throughput fix (finished runs hold slots). Start fresh from today's main — forge.json changed (check.run is now short), which is what made the earlier branches conflict. Keep it to the runner settle + idle guard + test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs