Fix: Sub-Agent Timeout or Hang

Error Message:

"Sub-agent execution timed out" "Waiting for agent..." (forever) "Partial results received"

The Cause

You launched a complex task using parallel sub-agents (e.g., "Research these 10 companies"), but one or more agents got stuck. This can happen due to:

  1. Infinite Loops: The agent is stuck trying to solve an impossible sub-task.
  2. Rate Limiting: The API blocked too many simultaneous requests.
  3. Network Issues: A temporary drop in connectivity.

The Fix

1. Reduce Parallelism

If you spawned 10 agents, try 3.

2. Set Explicit Timeouts

When giving the prompt, define a "time budget".

Note: Sub-agents consume a minimum of ~12,000 tokens per tool call overhead. Spawning too many can hit your rate limits faster than expected, causing timeouts.

3. Check the "Agent Logs"

Power users can see what the sub-agents are doing.

  1. Open the Console/Logs panel in Cowork (usually Cmd+Opt+L).
  2. Look for the stuck agent ID.
  3. Is it looping? (e.g., repeatedly searching for the same term).
  4. If looping, kill the task and refine your prompt to be more specific.

4. Switch Models

Sometimes the faster models (Haiku) get confused on complex tasks.