Fix: Update SubAgentManager initialization for new timeout params

Changed from timeout_seconds=300 to use default params (idle=300s, total=900s)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 17:45:40 -07:00
parent 8c039b6cad
commit 400ef73419

View File

@@ -42,7 +42,7 @@ class Agent:
# Sub-agent orchestration # Sub-agent orchestration
self.is_sub_agent = is_sub_agent self.is_sub_agent = is_sub_agent
self.specialist_prompt = specialist_prompt self.specialist_prompt = specialist_prompt
self.sub_agent_manager = SubAgentManager(timeout_seconds=300) # 5 min timeout self.sub_agent_manager = SubAgentManager() # Default: 5 min idle, 15 min total
if not is_sub_agent: if not is_sub_agent:
self.sub_agent_manager.start_watchdog() # Only main agent runs watchdog self.sub_agent_manager.start_watchdog() # Only main agent runs watchdog
self.sub_agents: dict = {} # Cache for spawned sub-agents self.sub_agents: dict = {} # Cache for spawned sub-agents