From 4a8746f5ce30966f62ee4fc64ddb3dcf8d9af939 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Fri, 20 Feb 2026 18:32:02 +0100 Subject: [PATCH] agent: More generous timeouts for subagents (#49734) Release Notes: - N/A --- crates/agent/src/tools/subagent_tool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/tools/subagent_tool.rs b/crates/agent/src/tools/subagent_tool.rs index 414042a47e..1c9487dcbe 100644 --- a/crates/agent/src/tools/subagent_tool.rs +++ b/crates/agent/src/tools/subagent_tool.rs @@ -32,7 +32,7 @@ pub struct SubagentToolInput { pub label: String, /// Describe the task for the agent to perform. Be specific about what you want accomplished. Include all necessary context (file paths, requirements, constraints) since the agent cannot see your conversation. pub task: String, - /// Optional maximum runtime in seconds. If not set, the agent runs until it completes or is cancelled. + /// Optional maximum runtime in seconds. The purpose of this timeout is to prevent the agent from getting stuck in infinite loops, NOT to estimate task duration. Be generous if setting. If not set, the agent runs until it completes or is cancelled. #[serde(default)] pub timeout_secs: Option, }