[Bug]: Usage limits count the same Antigravity account twice across environments #48299
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server (Antigravity quota reporting)
Steps to reproduce#
- Link two T3 Code environments. This reproduced with a Windows x64 desktop and a Linux x64 desktop.
- Enable Antigravity on each environment and sign in to the same personal Google account on both.
- Once both environments report quota, open Usage → Limits and select All environments.
- Switch to either environment individually to compare.
Expected behavior#
Each Antigravity quota window shows one bar for the shared Google account. The pooled allowance and refill estimate count that account once. Distinct Google accounts each get their own bar.
Actual behavior#
Each environment alone shows one Antigravity bar per window. With All environments selected, each of the four Antigravity windows shows two identical bars with matching reset times. The refill estimate also uses the duplicated entries when calculating how much the next reset restores.
Impact#
Minor bug. The duplicate bars and pooled refill estimate misrepresent the account's available quota.
Version or commit#
T3 Code Nightly 0.1.14-nightly.20261203.5651 (5dea97de40d6). Antigravity uses the agy usage --json quota path.
Investigation and local verification#
The Antigravity quota probe returns quota windows without a credentialFingerprint, and the two provider snapshots have no account email. The usage collector falls back to environment ID plus provider instance ID, so the two reports become separate accounts. Quota probe · Account collection
A local patch derives a stable fingerprint from the normalized Google sign-in email already present in the CLI profile and includes it in the quota snapshot. With the patch on both servers, the app's account collector merged the two live reports into one account with one bar per quota window. Regression tests also covered distinct accounts and profiles with no account identity.
Workaround#
Select a single environment in Usage → Limits when both environments use the same Google account.
tanstack-source added labelsbug
gurtprime(GitHub profile, opens in a new tab) closed this
This is the same problem as #47957, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.
Sign in to join this conversation.
Closing as this is already addressed by #48198.