[Bug]: Antigravity usage omits Gemini and Gemini Argon quota windows #24800
Area: apps/server (apps/server/src/provider/antigravityUsageLimits.ts)
Problem#
The Antigravity usage indicator shows only the Claude & GPT (shared) windows. The Gemini and Gemini 4 Argon quota windows never appear, so the indicator reads 100% left while Gemini quota is partly used.
Steps to reproduce#
- Sign in to Antigravity in T3 Code with an account that has Gemini, Gemini 4 Argon, and Claude/GPT quota groups.
- Open
~/.t3/caches/antigravity.jsonand readusageLimits.windows. - Compare with a direct
v1internal:retrieveUserQuotaSummarycall using theantigravity/acpUser-Agent.
Expected#
Windows for gemini-5h, gemini-weekly, gemini-argon-wtu-weekly, 3p-5h, and 3p-weekly, each with a distinct label.
Actual#
Only 3p-5h and 3p-weekly are cached.
Cause#
- The probe sends
User-Agent: antigravity/hub/1.0.0 .... In my testing the backend returns only theClaude and GPT modelsgroup for that subclient. The ACP server identifies asantigravity/acp/1.3.0, and that identity returns all three groups. retrieveUserQuotaSummaryreturns two3p-*buckets, so thefetchAvailableModelsfallback never runs.summaryWindowsmaps everygemini-*bucket ID to the familyGemini.gemini-argon-wtu-weeklytherefore gets the sameGemini · Weeklylabel asgemini-weekly.
Proposed fix#
Send the antigravity/acp/1.3.0 User-Agent, and label gemini-argon-* buckets with the group display name. PR to follow.
Confirming the cause on my account (T3 Code nightly on macOS, Google sign-in). I called
v1internal:retrieveUserQuotaSummarywith the sameacp_token.jsonthe probe uses, changing only the version in the User-Agent:User-Agent Buckets returned (both daily-cloudcode-paandcloudcode-pa)antigravity/hub/1.0.0 (...)(current main)3p-weekly100%,3p-5h100%antigravity/hub/2.24.0 (...)gemini-weekly53%,gemini-5h93%,3p-weekly100%,3p-5h100%The Gemini numbers with 2.24.0 match what
agy -p "/quota"reports for the same account at the same time (54% weekly, 93% five-hour).fetchAvailableModelsdoes return Gemini models with quotaInfo under 1.0.0, but the probe only falls back to it when the summary is empty, and here the summary is not empty because it carries the3p-*buckets. So the User-Agent change in #24801 or #23011 should be enough for this account.Another data point: same symptom on Windows 11, Google sign-in, T3 Code Nightly
0.1.3-nightly.20261025.3682(desktop, currentmainas of the 3682 tag).Usage → Limits shows only the shared Claude & GPT group for Antigravity. There are no Gemini 5-hour or Gemini weekly rows, so there is no way to tell how much Gemini quota is left. The Codex and Claude rows on the same screen are fine.
~/.t3/caches/antigravity.json(usageLimits.windows, checked 2026-10-25T22:28Z) has exactly two windows, matching the report here:id label kind usedPercent windowDurationMins 3p-5hClaude & GPT (shared) · 5-hour session 0 300 3p-weeklyClaude & GPT (shared) · Weekly weekly 0 10080 No
gemini-5h,gemini-weeklyorgemini-argon-*entries, and nounavailablemessage, so nothing in the UI hints that groups are missing. Because the3p-*buckets make the summary non-empty, thefetchAvailableModelsfallback never runs. This also matches #23080 (same OS, also Windows 11).I haven't tested #24801 on this machine. Happy to verify it against this account once it's merged or if a build is available.
Closing as a duplicate of #23080, which tracks the same problem. Please follow along there.
juliusmarminge closed this
Sign in to join this conversation.
+1, this is especially useful to have fixed because we can't use 3p (Claude/OSS) quota in T3 Code anyways