Repository navigation
fix(server): Antigravity limits prefer the CLI's sign-in over a stale ACP token - #40737
Closed
MohamedSayed0573 wants to merge 1 commit into
Closed
MohamedSayed0573 wants to merge 1 commit into
MohamedSayed0573 wants to merge 1 commit into
Conversation
Member
|
Thanks for this. #39544 makes the same change and is the one being kept. #39544 addresses the same account mismatch and also removes the legacy token fallback. That matters when the CLI is signed out: this change can still show the old account's quota, while the other fix reports that sign-in is required. Your CLI-first approach addresses the valid-sign-in case. Removing the obsolete fallback also covers the missing-sign-in case without retaining the old refresh path and cache. Closing as a duplicate. |
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.
Antigravity's usage probe checked
acp_token.jsonbefore the 1.5.x CLI's own sign-in (antigravity-oauth-token, or the OS keyring for Gemini Enterprise). When a profile still had a leftoveracp_token.jsonfrom an older integration or a different Google account, the usage panel reported that stale account's quotas instead of the account the agent actually runs with.Read the CLI's sign-in first (
antigravity-oauth-token, or the OS keyring foroauth-businesswith keyring read errors falling back) and only fall back toacp_token.jsonwhen the CLI has no sign-in. Expired CLI tokens report the existing "saved sign-in has expired" message instead of silently falling back toacp_token.json, and cached access is cleared when using the CLI sign-in or when signed out.Verification:
apps/server/src/provider/antigravityUsageLimits.test.tsfor preferring the CLI sign-in over a leftoveracp_token.jsonand refusing to fall back when the CLI token has expired.vp run check:changed upstream/mainpassed (format, lint, knip, graphql, typecheck, tests).Gemini 4 Neon (Medium) via Antigravity