Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: More generous timeouts for subagents (#49734)
Ben Brandt36b6e83c5304
diff --git a/crates/agent/src/tools/subagent_tool.rs b/crates/agent/src/tools/subagent_tool.rsindex 414042a47e8..1c9487dcbe6 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<u64>,}