Files
openclaw/src/agents
Muhammed Mukhthar CM ce6c7737c1 feat: add round-robin rotation and cooldown for auth profiles
Adds usage tracking to auth profiles for automatic rotation:

- ProfileUsageStats type with lastUsed, cooldownUntil, errorCount
- markAuthProfileUsed(): tracks successful usage, resets errors
- markAuthProfileCooldown(): applies exponential backoff (1/5/25/60min)
- isProfileInCooldown(): checks if profile should be skipped
- orderProfilesByMode(): now sorts by lastUsed (oldest first)

On auth/rate-limit failures, profiles are marked for cooldown before
rotation. On success, usage is recorded for round-robin ordering.

This enables automatic load distribution across multiple accounts
(e.g., Antigravity 5-hour rate limit windows).
2026-01-06 05:17:59 +00:00
..
2026-01-06 04:51:05 +00:00
2026-01-04 14:38:51 +00:00
2026-01-06 03:05:56 +01:00
2026-01-05 01:36:30 +01:00
2025-12-25 03:29:36 +01:00
2026-01-04 14:57:57 +00:00
2026-01-04 14:57:57 +00:00
2026-01-01 17:30:15 +01:00