Skip to content
Source
Sign inSign up
pingdotgg/t3code

Antigravity usage limits are duplicated per linked environment for the same Google account #48188

ClosedSamuelHitzinger(GitHub profile, opens in a new tab) opened this issue 1 comment

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.5651 on Windows 11, plus a linked Linux server and a linked macOS laptop.
  • Each machine has one provider instance, antigravity (driver antigravity, usageAccess: "allowed").
  • Antigravity CLI 1.5.23 on every machine, signed into the same personal Google account (authMethod=consumer in the CLI logs, oauth-personal in T3).

What I see

  • On the Linux server, which has linkedEnvironmentsEnabled: true and 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 from checkedAt.
  • 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.email is never set. The Antigravity provider's auth is just { status: "authenticated", type: "oauth-personal", label: "Google account" } with no email. The Antigravity CLI does know the account email; it logs applyAuthResult: email=….
  • credentialFingerprint is missing. apps/server/src/provider/antigravityUsageLimits.ts should attach it, hashed from the Google account ID returned by oauth2/v2/userinfo. But the persisted provider status (~/.t3/caches/antigravity.json) on both machines has usageLimits with checkedAt and windows only, no credentialFingerprint. 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 userinfo call 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.email for Antigravity from the CLI or userinfo, so accountKey matches 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.

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

  1. tanstack-source added labelsbug

  2. 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.

  3. juliusmarminge closed this

Sign in to join this conversation.