openclaw/src/agents/pi-embedded-helpers
zijiess dca7969b2e
fix(agents): classify Anthropic "unexpected error" api_error as transient (#57441)
* fix(agents): classify Anthropic "unexpected error" api_error as transient (#57010)

Anthropic sometimes returns api_error payloads with message "An unexpected
error occurred while processing the response" during mid-stream failures.
This was not matched by API_ERROR_TRANSIENT_SIGNALS_RE, causing the error
to surface as terminal instead of triggering retry/fallback.

Add "unexpected error" to the transient signal regex. This follows the
same pattern as prior fixes for "Internal server error" (#23193) and
overloaded_error 529 (#34535).

Closes #57010

* chore(changelog): add anthropic failover entry

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-03-30 12:56:07 +09:00
..
bootstrap.ts
errors.ts fix(agents): classify Anthropic "unexpected error" api_error as transient (#57441) 2026-03-30 12:56:07 +09:00
failover-matches.ts fix(agents): fail over and sanitize Codex server_error payloads (#42892) 2026-03-27 16:51:39 +03:00
google.ts refactor(plugins): move provider policy hooks into plugins 2026-03-28 06:11:13 +00:00
images.ts
messaging-dedupe.ts
openai.ts
thinking.test.ts
thinking.ts
turns.ts
types.ts