Conversation
Antigravity 429s with multi-day weekly reset hints (e.g. 166h) were classified as full quota and latched into Retry-After / NextRecoverAt with no ceiling, so one model's weekly exhaustion could park healthy siblings on the same credential. Cap hinted cooldown durations at 24h and treat long RATE_LIMIT_EXCEEDED resets as model-scoped rotate-account cooldowns, leaving short-cooldown and true QUOTA_EXHAUSTED paths intact. Fixes router-for-me#5843
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Antigravity weekly quota resets can advertise ~166h
Retry-After/quotaResetDelay. That duration was applied unbounded, sodecideAntigravity429treated long per-modelRATE_LIMIT_EXCEEDEDas full quota and the conductor latchedNextRecoverAt(and shortCool) for days. One model's weekly exhaustion then kept healthy sibling models on the same credential out of rotation.This change:
RATE_LIMIT_EXCEEDEDresets model-scoped (rotate that model) instead of parking the whole credential.QUOTA_EXHAUSTEDfull-quota handling intact.Fixes #5843
Test plan
go test ./internal/runtime/executor -run 'TestClassifyAntigravity429|TestNewAntigravityStatusErr_WeeklyResetHintIsCapped|TestAntigravityExecutor_WeeklyModelResetDoesNotBlockSibling'QUOTA_EXHAUSTEDremains full-quota (still duration-capped)