tweak: show actual retry error message instead of generic error msg (#11520)

This commit is contained in:
Aiden Cline
2026-01-31 13:15:42 -06:00
committed by GitHub
parent a19ef17bcb
commit da7c874808
2 changed files with 2 additions and 8 deletions

View File

@@ -89,13 +89,7 @@ export namespace SessionRetry {
if (json.type === "error" && json.error?.code?.includes("rate_limit")) {
return "Rate Limited"
}
if (
json.error?.message?.includes("no_kv_space") ||
(json.type === "error" && json.error?.type === "server_error") ||
!!json.error
) {
return "Provider Server Error"
}
return JSON.stringify(json)
} catch {
return undefined
}