GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): Antigravity limits prefer the CLI's sign-in over a stale ACP token by MohamedSayed0573 · Pull Request #40737 · pingdotgg/t3code

Conversation

@MohamedSayed0573

@MohamedSayed0573 MohamedSayed0573 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Antigravity's usage probe checked acp_token.json before 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 leftover acp_token.json from 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 for oauth-business with keyring read errors falling back) and only fall back to acp_token.json when the CLI has no sign-in. Expired CLI tokens report the existing "saved sign-in has expired" message instead of silently falling back to acp_token.json, and cached access is cleared when using the CLI sign-in or when signed out.

Verification:

  • Added coverage in apps/server/src/provider/antigravityUsageLimits.test.ts for preferring the CLI sign-in over a leftover acp_token.json and refusing to fall back when the CLI token has expired.
  • vp run check:changed upstream/main passed (format, lint, knip, graphql, typecheck, tests).

Gemini 4 Neon (Medium) via Antigravity

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@MohamedSayed0573
fix(server): Antigravity limits prefer the CLI's sign-in over a stale…
8fdcaae
… ACP token
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 22, 2026
@juliusmarminge

juliusmarminge commented Nov 22, 2026

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 22, 2026
This was referenced Nov 22, 2026
fix(server): prefer current Antigravity sign-in for usage limits #40834
Closed
fix(server): fall back to OS keyring for personal Antigravity limits #42408
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@MohamedSayed0573 @juliusmarminge
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.