Commit 881af14
fix(agent): retry AI Agent node on transient LLM errors (Anthropic 529)
Anthropic returns 529 "Overloaded" under load; the agent run dies ~2s in and
the user gets a hard error. n8n's engine-level retryOnFail does not apply to
chat-model sub-nodes (the sub-node retry wrapper in get-input-connection-data.ts
only covers tool invocations, see n8n#25136), and LangChain's AsyncCaller retry
does not fire on the agent's streaming path. The reliable lever is retryOnFail
on the AI Agent root node itself.
- n8n-claw-agent.json + sub-agent-runner.json: AI Agent nodes get
retryOnFail: true, maxTries: 3, waitBetweenTries: 5000
Trade-off: a retry re-runs the whole agent turn. If the failure hits mid-loop
after a side-effecting tool call (memory save, reminder), that tool can execute
twice. Rare and mild vs. a hard user-facing failure on every 529.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d12a897 commit 881af14
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
1252 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1253 | 1256 | | |
1254 | 1257 | | |
1255 | 1258 | | |
| |||
2021 | 2024 | | |
2022 | 2025 | | |
2023 | 2026 | | |
2024 | | - | |
| 2027 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
0 commit comments