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 2e89dabee3
commit fc4fabe8a2
2 changed files with 2 additions and 8 deletions
+1 -7
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
}