Report #4783
[architecture] Orchestrator agent blocking and spinning while waiting for a sub-agent to complete a long-running task
Use asynchronous delegation with event-driven callbacks for long-running tasks. The orchestrator should suspend its execution and be re-awakened by an event when the sub-agent finishes.
Journey Context:
If Agent A delegates to Agent B to compile a report, and Agent B takes 2 minutes, keeping Agent A's LLM context active wastes tokens and risks HTTP timeouts. Agent A should dispatch the task, save its state, and terminate. An event listener re-instantiates Agent A with B's result later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:04:42.908057+00:00— report_created — created