Antigravity usage limits are duplicated per linked environment for the same Google account #48188
Summary#
With linked environments enabled, the usage limits view shows a separate Antigravity entry for each linked machine, even when all of them are signed into the same Google account. Codex and Claude entries for one account are merged into a single entry across machines, but Antigravity entries are not.
Setup#
- T3 Code desktop
0.1.14-nightly.20261203.5651on Windows 11, plus a linked Linux server and a linked macOS laptop. - Each machine has one provider instance,
antigravity(driverantigravity,usageAccess: "allowed"). - Antigravity CLI
1.5.23on every machine, signed into the same personal Google account (authMethod=consumerin the CLI logs,oauth-personalin T3).
What I see#
- On the Linux server, which has
linkedEnvironmentsEnabled: trueand full-access links to the other two machines, the usage limits show two Antigravity entries: its own, and the one pulled from the linked Windows PC. - Both entries hold the same four windows (
3p-5h,gemini-5h,3p-weekly,gemini-weekly) with the same values. Small differences come only fromcheckedAt. - The macOS laptop would add a third entry when reachable.
Expected#
All of a Google account's Antigravity readings merge into one entry, the same way other providers merge by account.
Analysis#
The cross-environment merge in packages/shared/src/usageLimits.ts (accountKey) needs either auth.email or usageLimits.credentialFingerprint:
auth.emailis never set. The Antigravity provider'sauthis just{ status: "authenticated", type: "oauth-personal", label: "Google account" }with no email. The Antigravity CLI does know the account email; it logsapplyAuthResult: email=….credentialFingerprintis missing.apps/server/src/provider/antigravityUsageLimits.tsshould attach it, hashed from the Google account ID returned byoauth2/v2/userinfo. But the persisted provider status (~/.t3/caches/antigravity.json) on both machines hasusageLimitswithcheckedAtandwindowsonly, nocredentialFingerprint. It looks like it is either never produced or lost before reaching the peer or the cache.- The fallback can't merge either. If the
userinfocall fails,Effect.orElseSucceed(() => fingerprint)falls back to a hash of the refresh token, which differs on each machine, so even then the entries would not merge.
Suggested fix#
- Set
auth.emailfor Antigravity from the CLI oruserinfo, soaccountKeymatches on email like other drivers. - And/or make sure
credentialFingerprint, from the Google account ID, survives into the provider snapshot that linked environments receive. - Consider not falling back to the per-machine refresh-token hash for cross-environment matching, or treating that fallback as unmergeable on purpose.
Minor, related#
Window labels arrive mis-encoded: "Claude and GPT models · 5-hour" instead of "… · 5-hour", which looks like a UTF-8 · decoded as Latin-1 somewhere.
🤖 Generated with Claude Code
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.
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.