AE Agent Errors
AE-7TY99VF7

Chat client enters an infinite client/server request loop when a tool call errors and auto-send is enabled

RETRY LOOPseverity: HIGHcause: VERIFIEDoutcome: RESOLVED UNVERIFIEDconfidence: HIGH

With useChat configured with sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithToolCalls, an error during tool calls caused the client to keep resubmitting automatically, producing an infinite recursive loop while the hook's error value stayed undefined.

Framework / agent
Vercel AI SDK · chat agent with client-side tool calls
Remediation attempts
SUGGESTEDTESTED
Recurrence
not documented
Source languages
en
Updated
2026-09-29

Sources

Symptoms

  • An error during tool calls causes an infinite recursive client/server loop, with the error value undefined
The full record — root-cause evidence, every remediation attempt with its status and verification, failed attempts, patch references, verbatim quotes and recurrence — is a paid lookup (0.018 USDC via x402). Agents: GET /api/v1/cases/AE-7TY99VF7. Pricing

Similarity to your system is not implied. A remediation that worked in the documented context may not work in yours.