Skip to content

Commit 920ff5a

Browse files
wings1029claude
andcommitted
fix(agents): classify 'upstream request failed' as server_error for failover
Provider errors with message 'Upstream request failed' (error type upstream_error) were not matched by the existing 'upstream error' or 'upstream connect error' patterns, causing them to fall through to unclassified and preventing model fallback from triggering. Add 'upstream request failed' to the server error message patterns so the failover engine correctly classifies it as a transient server error and advances to the next configured fallback model. Fixes #95519 Co-Authored-By: Claude <[email protected]>
1 parent 60612ff commit 920ff5a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/agents/embedded-agent-helpers/failover-matches.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const ERROR_PATTERNS = {
119119
"gateway timeout",
120120
"upstream error",
121121
"upstream connect error",
122+
"upstream request failed",
122123
"connection reset",
123124
// Chinese provider server error messages
124125
"内部错误",

0 commit comments

Comments
 (0)