Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity usage omits Gemini and Gemini Argon quota windows #24800

Closedrolfilho(GitHub profile, opens in a new tab) opened this issue 4 comments

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

  1. Sign in to Antigravity in T3 Code with an account that has Gemini, Gemini 4 Argon, and Claude/GPT quota groups.
  2. Open ~/.t3/caches/antigravity.json and read usageLimits.windows.
  3. Compare with a direct v1internal:retrieveUserQuotaSummary call using the antigravity/acp User-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

  1. The probe sends User-Agent: antigravity/hub/1.0.0 .... In my testing the backend returns only the Claude and GPT models group for that subclient. The ACP server identifies as antigravity/acp/1.3.0, and that identity returns all three groups.
  2. retrieveUserQuotaSummary returns two 3p-* buckets, so the fetchAvailableModels fallback never runs.
  3. summaryWindows maps every gemini-* bucket ID to the family Gemini. gemini-argon-wtu-weekly therefore gets the same Gemini · Weekly label as gemini-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.

  1. +1, this is especially useful to have fixed because we can't use 3p (Claude/OSS) quota in T3 Code anyways

  2. Confirming the cause on my account (T3 Code nightly on macOS, Google sign-in). I called v1internal:retrieveUserQuotaSummary with the same acp_token.json the probe uses, changing only the version in the User-Agent:

    User-AgentBuckets returned (both daily-cloudcode-pa and cloudcode-pa)
    antigravity/hub/1.0.0 (...) (current main)3p-weekly 100%, 3p-5h 100%
    antigravity/hub/2.24.0 (...)gemini-weekly 53%, gemini-5h 93%, 3p-weekly 100%, 3p-5h 100%

    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). fetchAvailableModels does 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 the 3p-* buckets. So the User-Agent change in #24801 or #23011 should be enough for this account.

  3. Another data point: same symptom on Windows 11, Google sign-in, T3 Code Nightly 0.1.3-nightly.20261025.3682 (desktop, current main as 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:

    idlabelkindusedPercentwindowDurationMins
    3p-5hClaude & GPT (shared) · 5-hoursession0300
    3p-weeklyClaude & GPT (shared) · Weeklyweekly010080

    No gemini-5h, gemini-weekly or gemini-argon-* entries, and no unavailable message, so nothing in the UI hints that groups are missing. Because the 3p-* buckets make the summary non-empty, the fetchAvailableModels fallback 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.

  4. Closing as a duplicate of #23080, which tracks the same problem. Please follow along there.

  5. juliusmarminge closed this

Sign in to join this conversation.