Skip to content

fix(antigravity): 429 hang on credit exhaustion and precise reset time lockout (Cleaned) - #5846

Merged
diegosouzapw merged 2 commits into
cheaper-inference:release/v3.8.43from
Chewji9875:fix/antigravity-quota-lockout-clean
Jul 2, 2026
Merged

diegosouzapw merged 2 commits into
cheaper-inference:release/v3.8.43from
Chewji9875:fix/antigravity-quota-lockout-clean

Conversation

@Chewji9875

Copy link
Copy Markdown
Contributor

This PR resolves three critical issues in Antigravity's 429 and rate-limiting / model-lockout behavior, cleaned of all local configuration/sync scripts:

  1. 60-70s hang on G1 Credits Exhaustion: Resolves 429 response classifier failure where INSUFFICIENT_G1_CREDITS_BALANCE in body details causes a soft retry loop. We parse details[].reason from body in open-sse/executors/antigravity.ts and add keyword mapping in src/shared/utils/classify429.ts and open-sse/services/antigravity429Engine.ts.
  2. 5h/Weekly Quota locks for full day: Extracts quotaResetHintMs from quota error texts parsed during checkFallbackError even if connection-level retry hints are disabled. We wire quotaResetHintMs into exactCooldownMs in markAccountUnavailable (in src/sse/services/auth.ts) so model lockout locks only for the actual quota reset duration (e.g. 5 hours) instead of defaulting to tomorrow midnight (up to 24h).
  3. Robust Test Coverage: Added tests/unit/antigravity-429-quota-tdd.test.ts asserting all three issues are resolved without regressions. All tests passing.

@Chewji9875
Chewji9875 requested a review from diegosouzapw as a code owner July 1, 2026 16:01
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Restore the original strict fitness_table/0.9 assertion in
autoCombo.test.ts — the models_dev_tier fallback broadening was
unrelated to this PR's antigravity quota-lockout fix.

Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
@diegosouzapw
diegosouzapw merged commit e5e47eb into cheaper-inference:release/v3.8.43 Jul 2, 2026
3 checks passed
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Thanks @Chewji9875! Great root-cause work — classifying error.details[].reason kills the 60-70s hang and the precise reset-time lockout respects our model-lockout vs terminal-state separation. We reverted one out-of-scope test assertion (autoCombo) that proved unnecessary (56/56 green without it). Merged into release/v3.8.43. 🙌

tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants