Repository navigation
fix(accounts): take ToS-suspended accounts out of rotation and surface the suspension - #117
Merged
Merged
Conversation
… them A 403 "violation of Terms of Service" is account-level and permanent for the process: retrying burned one attempt per request and kept the account in the rotation, while stats and the quota report still showed it 100% healthy and USABLE yes. - detect the ToS 403 body and mark the account suspended (disable + persist) - skip suspended accounts instead of retrying them - show SUSPENDED in antigravity_stats and (suspended) / usable no in antigravity_quota - clear the mark when the user explicitly re-enables the account - bump the CLI client signature to agy 1.5.17 (build 4823843970351104)
…tion - menu marks the account [suspended: ToS] instead of [disabled] - a suspended record stays ineligible even if the stored enabled flag is true - quota check and search rotation carry the suspension flag
Automated verification
typechecktestsbuild |
Merged
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.
Google answers 403 "This service has been disabled in this account for violation of Terms of Service" for every model on the account. The plugin treated it as retryable, kept the account in rotation, and reported it as 100% healthy with
USABLE yes.Changes:
validation_requiredand 429) and mark the account suspended: disabled, persistedsuspended/suspendedAt/suspendedReason, no retryenabledflag is true; re-enabling it explicitly clears the markSUSPENDEDinantigravity_stats,(suspended)/USABLE noinantigravity_quota,[suspended: ToS]in the menuVerification: live requests with the new signature returned HTTP 200 for
gemini-3.8-flash-low,gemini-3.8-flash-highandclaude-sonnet-4-6on two accounts; 1253 tests pass.