fix(ai): retry transient server-busy provider errors
Some checks are pending
CI / build-check-test (push) Waiting to run
CI / mcp-conformance (push) Waiting to run

Recognize server_busy and servers are currently busy as retryable errors.

Fixes #10543
This commit is contained in:
David Brailovsky 2026-10-06 15:59:07 +02:00
parent 56b25ff4eb
commit 8b5708dbb1
2 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed `server_busy` and `servers are currently busy` provider errors ending the turn instead of being retried ([#10543](https://github.com/earendil-works/pi/issues/10543))
## [1.0.4] - 2026-10-05
### Fixed

View file

@ -30,6 +30,8 @@ const NON_RETRYABLE_PROVIDER_LIMIT_ERROR_PATTERN = buildProviderErrorPattern([
const RETRYABLE_PROVIDER_ERROR_PATTERN = buildProviderErrorPattern([
// Generic provider load, HTTP status, and server-side transient failures.
"overloaded",
"server_busy",
"servers are currently busy",
"currently experiencing high demand",
"model is at capacity",
"rate.?limit",