Antigravity usage: Gemini quota group missing, and full buckets show a reset time that never counts down #23080
Version: 0.1.2-nightly.20261021.3473, Windows 11, Google AI Pro account
Expected (Antigravity app): "Gemini Models": weekly 85% (resets 4d 20h) and 5-hour 100%; "Claude and GPT models": weekly 100% and 5-hour 100%. Actual (T3): only "Claude & GPT (shared)", 5-hour and weekly, permanently at "100%, resets in 5h 0m / 7d 0h".
Cause:
antigravityUsageLimits.tscallsv1internal:retrieveUserQuotaSummarywith the ACP CLI OAuth credential fromantigravity-acp/acp_token.json. For this account the response only contains the3p-weeklyand3p-5hbuckets ("Claude and GPT models"). The Gemini group isn't returned, whether or not the body includesprojectand whatever user-agent is sent. The same Google account in the Antigravity app does get the Gemini group, so the summary seems to depend on the calling client or credential.fetchAvailableModelsis only consulted when the summary is entirely empty, so the Gemini models are never merged in. The per-modelquotaInfoit returns (andretrieveUserQuota) also reportsremainingFraction: 1for every Gemini model, so it isn't a reliable substitute.- For a bucket with no usage, the API returns
resetTime = now + window. T3 renders that, so every refresh shows "5h 0m" or "7d 0h" again.
Proposed fix:
- Get quotas from the running Antigravity agent instead of calling Google directly with the CLI token. The language server already exposes
RetrieveUserQuotaSummaryand has a cache for it, and it returns the same groups the app shows. If that isn't possible, call the summary with the same client identity the app uses. - Keep the group's
displayNameand show every group the API returns. Don't hard-code only thegemini-*and3p-*families. - When
remainingFraction === 1, hide the reset countdown the way Antigravity does, or show "not started". - Don't silently drop a whole provider group. If a group that was present before disappears, show it as "unavailable".
Additional reproduction on Windows:
- T3 Code Desktop Stable 0.1.6; Windows 11 x64; server 0.1.6.
- The Antigravity provider is enabled and connected.
- At 2026-10-31 11:23 UTC, the provider cache contained only
3p-5hand3p-weekly(“Claude & GPT (shared) · 5-hour” and “Claude & GPT (shared) · Weekly”). It contained no Gemini or Gemini Argon quota windows. The server trace confirms the Antigravity quota probe ran at that time.
This reproduces the missing Gemini/Argon limits on the latest stable Windows desktop build. The 0.1.6 release uses the
hub/1.0.0quota identity. PR #28090, which updates the identity and preserves Argon’s label, merged after that release; no release containing it was available when checked.Seems to be fixed now, closing!
Sign in to join this conversation.
Additional confirmed reproduction (macOS, 2026-10-30) — root cause isolated to the legacy User-Agent + exclusive fallback#
Adding a fully instrumented reproduction of this issue on a second account/platform, because it decides between the two candidate mechanisms discussed here and in #22876, and it constrains which of the open fix PRs can actually work.
Environment: macOS (arm64), T3 Code (Nightly)
0.1.6-nightly.20261030.3917(published 2026-10-30, commit97e35bcf23e4).apps/server/src/provider/antigravityUsageLimits.tshas the identical git blob (75333ae8…) on that nightly and onmainHEAD32ecd717(2026-10-30), so this is current, not a stale build. Auth:oauth-personal, single Antigravity instance.What T3 shows vs. what the backend actually returns for this account#
Direct
POST https://cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummarywith the ACP client identity (sameacp_token.jsoncredential T3 reads, body{"project":"aicode-consumers"}, token refreshed in memory, nothing written to disk) at2026-10-30T10:05:32Z→ HTTP 200, 3 groups / 5 buckets:gemini-weeklygemini-5h3p-weekly3p-5hgemini-argon-wtu-weeklyThe Argon bucket's own
descriptionreads: "You have hit your weekly limit, it refreshes in 6 days, 8 hours…"T3's Usage → Limits shows only the two 3p rows (5-hour 100% left, Weekly 49% left ↻6d 3h). This is not a rendering/scroll issue: the on-disk payload the UI renders (
~/.t3/caches/antigravity.json,checkedAt: 2026-10-30T10:11:46.068Z) contains exactly 2 windows —3p-5h usedPercent 0,3p-weekly usedPercent 50.506…— andpackages/shared/src/usageLimits.tssortsgemini-windows first, so Gemini rows could never hide below the visible 3p rows. Net user impact: the model family this account actually uses (Gemini 4 Argon) is exhausted (0% weekly left) and completely invisible in T3, while the panel suggests only a half-used Claude/GPT pool — a family this account barely touches (9 of the 10 local ACP conversation DBs are dominated bygemini-4-argon-high).Decisive experiment: 2×2 User-Agent × host matrix#
Same credential, same body, seconds apart, only the User-Agent changes (2026-10-30T10:10:30Z, repeated 10:11:19Z, identical result):
antigravity/hub/1.0.0 (aidev_client; …; cl=963137146)num_groups=1(3p only)num_groups=1(3p only)num_groups=3num_groups=3with identical 3p values in all four responses. Two consequences:
hub/1.0.0. So the already-merged #20081 both-hosts merge cannot recover the buckets — they never arrive on either host with the identity T3 currently sends.Mechanism (source, current
main)#antigravityUsageLimits.ts:260still sendsantigravity/hub/1.0.0 …→ Google returns only the 3p group.antigravityUsageLimits.ts:282-286:summary.length === 2is truthy, so the model fallback never executes. Corroborated locally twice: server trace logs show 10retrieveUserQuotaSummarylines and 0fetchAvailableModelslines across 5 probes; and a mocked-HttpClient run of the real module (both hosts returning 3p-only summaries, models containing Gemini) outputs the two 3p windows withFETCHMODELS_CALLS: 0. No existing test covers "both summaries non-empty but 3p-only while models hold Gemini" — the suite passes without exercising this case.hub/1.0.0UA,fetchAvailableModelsreturns 20 models with nogemini-4-argon-*and nogemini-3.8-flash-{low,medium,high}(vs 26 models incl. Argon under the ACP identity). And when Argon is present, itsquotaInfoomitsremainingFraction(proto3 zero), whichquotaWindow(:85-87) drops. The summary endpoint is the only reliable Argon source. A UA/identity fix (the #23011 / #21361 class) is therefore necessary; the fallback merge is at most a partial complement for generic Gemini rows.gemini-argon-wtu-weeklygets the generic labelGemini · Weekly(:107-111, prefix match), indistinguishable fromgemini-weekly. Argon needs its own label, as #21361 proposes, anddocs/user/providers-antigravity.md:134-136still documents only two groups.Ruled out (each falsified with inspected evidence, not assumed)#
windows.length === 2; gemini-first sort; Antigravity is the last section with empty space below the last card.idis the upstreambucketIdverbatim and 0.49494 belongs only to3p-weekly(Gemini weekly = 1, Argon weekly = 0, distinct reset times). The 3p rows are genuine; Gemini rows are absent, not renamed.checkedAtwas ~4 min old at inspection and fresh live probes with T3's exact request deterministically reproduce the 3p-only result.usedPercent 50.50600000000001 == (1 − 0.49494) × 100, sameresetsAt).usedPercent = (1 − remainingFraction) × 100(:93); an inversion would show 51% left weekly, not 49%.Minimal reproduction#
Claude & GPT (shared) · 5-hourand· Weekly.retrieveUserQuotaSummary, both Cloud Code hosts, UAantigravity/hub/1.0.0 …) with the local ACP credential → 1 group. Change only the User-Agent to the ACP client identity → 3 groups, includinggemini-argon-wtu-weekly.Expected: 5 rows — Gemini 5h/Weekly, Claude & GPT 5h/Weekly, Gemini 4 Argon Weekly (0% left here). Actual: 2 rows, Argon exhaustion invisible.
Suggested fix direction#
hub/2.24.0and #21361's ACP identity; note the minimal sufficient UA is untested — I verifiedhub/1.0.0fails and the full ACP identity works, but did not probehub/2.24.0on this account).fetchAvailableModels(#26582) as a safety net for the generic Gemini group.gemini-argon-*buckets their ownGemini 4 Argonlabel; keep upstream groupdisplayNameinstead of hard-coded families where possible.fetchAvailableModelscontains Gemini models — currently untested, and this exact case reproduces the screenshot (FETCHMODELS_CALLS: 0).Related: #22876 (UA tracker), #27473 and #27448 (same symptom, filed today — likely duplicates of this issue), PRs #23011, #26582, #21361, #21020. The perpetual "resets in 4h 59m" countdown on untouched buckets visible in my screenshot is the separate #22815 artifact, not part of the above root cause. No credential values are included anywhere in this comment; all probes refreshed the token in memory only.