You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): use shorter backoff for auth_permanent failures
auth_permanent errors (e.g. API_KEY_INVALID) can be caused by transient
provider outages rather than genuinely revoked credentials. Previously
these used the same 5h-24h billing backoff, which left providers disabled
long after the upstream issue resolved.
Introduce separate authPermanentBackoffMinutes (default: 10) and
authPermanentMaxMinutes (default: 60) config options so auth_permanent
failures recover in minutes rather than hours.
Fixes#56838
"Optional per-provider overrides for billing backoff (hours).",
824
824
"auth.cooldowns.billingMaxHours": "Cap (hours) for billing backoff (default: 24).",
825
+
"auth.cooldowns.authPermanentBackoffMinutes":
826
+
"Base backoff (minutes) for auth_permanent failures (default: 10). Shorter than billing because these errors are often caused by transient provider outages.",
827
+
"auth.cooldowns.authPermanentMaxMinutes":
828
+
"Cap (minutes) for auth_permanent backoff (default: 60).",
825
829
"auth.cooldowns.failureWindowHours": "Failure window (hours) for backoff counters (default: 24).",
826
830
"auth.cooldowns.overloadedProfileRotations":
827
831
"Maximum same-provider auth-profile rotations allowed for overloaded errors before switching to model fallback (default: 1).",
0 commit comments