refactor: centralize failover error parsing

This commit is contained in:
Peter Steinberger committed 2026-01-10 01:26:06 +01:00
1 parent 82ffcfb181
commit 53ec8e36cb
7 files changed
+98 -58

No files matched your search

+2
View File
@@ -58,6 +58,8 @@ If you have both an OAuth profile and an API key profile for the same provider,
When a profile fails due to auth/rate‑limit errors (or a timeout that looks
like rate limiting), Clawdbot marks it in cooldown and moves to the next profile.
Format/invalid‑request errors (for example Cloud Code Assist tool call ID
validation failures) are treated as failover‑worthy and use the same cooldowns.
Cooldowns use exponential backoff:
- 1 minute