-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Feature: Activity-aware run timeout (wall-clock timeout kills active multi-tool runs) #41588
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Problem
The gateway run timeout (
agents.defaults.timeoutSeconds, default 600s) is a flat wall-clock timer. It kills runs that exceed the limit regardless of whether they are actively making progress.Observed behavior: Sessions running complex multi-tool chains (image analysis, diagram generation, research with 10+ sequential tool calls) get killed at 600s with
embedded run timeout. The user sees silence — tool calls completed but no assistant response is generated.Expected behavior: Active runs making steady progress (tool calls completing, LLM generating responses) should not be killed by a wall-clock timeout.
5 Whys Root Cause
Current Workaround
Bump
agents.defaults.timeoutSecondsto a higher value (e.g. 1200). This is a band-aid — long research sessions can still hit it.Proposed Solutions (any of these would help)
timeoutSeconds.idleTimeoutSeconds(time since last activity) +maxTimeoutSeconds(absolute cap)timeoutSeconds: 0— the JSON Schema currently hasexclusiveMinimum: 0, preventing "no timeout". Allow 0 to mean unlimited.Environment
agents.defaults.timeoutSeconds(default 600)Labels
enhancement, gateway