mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 05:45:04 +03:00
Three bugs fixed together: 1. decide429() was called AFTER the Google One AI credits retry — a quota-exhausted account could hang ~41s on the credits HTTP call before the full_quota_exhausted verdict was ever computed. Now decide429() runs first; credits retry is skipped when kind === full_quota_exhausted. 2. setConnectionRateLimitUntil() was never called from the antigravity executor — the 24h cooldown state lived only in memory and was lost on restart, causing post-restart requests to re-learn exhaustion the hard way (7,412 upstream 429s documented in #3707). markConnectionQuotaExhausted() now persists it to the DB. 3. antigravity429Engine classify429() did not recognise the real Antigravity quota message ("Individual quota reached. Contact your administrator to enable overages.") — it fell through to the unknown category and never triggered the quota_exhausted path. Added "quota reached", "enable overages", "individual quota" to the keywords.