Repository navigation
fix(server): prefer current Antigravity sign-in for usage limits - #40834
iomarsuleiman wants to merge 1 commit into
Conversation
Use the native CLI token when it coexists with a legacy acp_token.json, so stale credentials and their project do not hide current quota windows. Preserve the legacy-only path and cover credential precedence and expired native tokens. Produced by GPT-6.1 Sol in Codex.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks for this. #39544 makes the same change and is the one being kept. #39544 fixes the same stale-credential problem and also handles a current sign-in stored in the keyring when no native token file exists. This change still lets the leftover legacy file override that sign-in. The legacy compatibility path preserves credentials from runtimes that current T3 Code already refuses. Your Windows reproduction and live quota comparison would be useful evidence for finishing the existing fix. Closing as a duplicate. |
Problem
Antigravity Usage → Limits can remain at 100% and omit the five-hour and Argon windows when a profile contains both
antigravity-oauth-tokenand a leftoveracp_token.json. The probe currently chooses the legacy credential and project before checking the active CLI sign-in.Reproduced on Windows x64 with T3 Desktop
0.1.12-nightly.20261120.4994, managed Antigravity1.5.13, and Google AI Pro.Change
Prefer the profile's native CLI token whenever that file exists. Keep the existing legacy-only path for older profiles. An expired native token reports the existing failure instead of silently falling back to a different legacy sign-in.
Scope
Related: #34381, #40348, #40015. This overlaps #39544; this smaller alternative preserves legacy-only compatibility rather than removing the legacy probe path.
Verification
gemini-weeklyand3p-weekly, both at 100% remaining.antigravityUsageLimits.test.ts.check:changedrun has passed formatting and lint; its remaining steps have not completed locally.Produced by GPT-6.1 Sol in Codex.