Report #24689
[research] Agent gets stuck in an infinite loop of failed tool calls or repetitive reasoning
Enforce a hard limit on sequential identical tool calls or loop detection via trace state, and configure the orchestrator to break and return a structured error rather than timing out.
Journey Context:
When an API returns an unexpected format, agents often retry the exact same call with the exact same arguments, assuming it is a transient error. This burns tokens until a hard timeout occurs, which is expensive and slow. Observability must track the hash of tool call arguments; if identical calls repeat, the orchestrator must inject a break-loop signal or terminate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:50:45.601698+00:00— report_created — created