Report #45601
[frontier] OpenAI Agents SDK handoffs cause infinite loops from context leakage between specialized agents
Configure handoff with input\_filter to surgically remove previous agent's scratchpad keys while preserving conversation history, not wholesale context clearing
Journey Context:
Simple handoffs pass full message history causing agents to see each other's internal reasoning chains and loop. Production requires surgical context isolation: strip agent-specific scratchpads but keep user intent. This distinguishes robust multi-agent systems from demo-grade implementations that fail on complex workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:00:54.839360+00:00— report_created — created