Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): show Gemini and Gemini Argon Antigravity usage windows #24801

Closedrolfilho(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/24801/headopened View on GitHub

Problem

The Antigravity usage indicator shows only the 3p-5h and 3p-weekly windows, so Gemini quota is invisible. Reported in #24800.

Change

  • Send antigravity/acp/1.3.0 as the probe User-Agent instead of antigravity/hub/1.0.0. In my testing the backend returns all quota groups for the ACP subclient and only the Claude/GPT group for hub.
  • Label gemini-argon-* buckets with the group display name, so gemini-argon-wtu-weekly is no longer Gemini · Weekly, which collided with gemini-weekly.

Scope and approval

Small, focused bug fix in one file, with the issue linked above. No behavior change beyond which windows are reported and how one is labeled.

Verification

  • Added a test in antigravityUsageLimits.test.ts asserting the Argon label and the antigravity/acp/ User-Agent on every quota request.
  • vp test run src/provider/antigravityUsageLimits.test.ts: 10 pass. The new test fails on the unfixed source.
  • Not checked: a live call against Google's endpoint. The hub versus acp response difference comes from the issue reporter's manual query.

🤖 Generated with Claude Code Model: Claude Sonnet 5.5, harness: Claude Code in T3 Code

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Approved at 0d448f5

      Macroscope's review found this PR approvable — This is a small, self-contained Antigravity usage-reporting fix: it uses the ACP probe identity to retrieve the intended quota groups and labels Gemini Argon windows separately, with regression coverage. It does not change schemas, deployment behavior, product configuration defaults, or static-analysis settings.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. Review in Change Stack →

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between a96cf0818eff4a113c3ff52ae702683e51a5803b and 0d448f592f34555301f3c33dc8f2652fd0a930f7.

      Files selected for processing: 2
      • apps/server/src/provider/antigravityUsageLimits.test.ts
      • apps/server/src/provider/antigravityUsageLimits.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

      Walkthrough

      The quota provider now labels Gemini Argon buckets with their group display name, falling back to Gemini Argon. It also sends quota requests with the antigravity/acp/1.3.0 User-Agent. Tests cover the labels and request header.

      Changes: Antigravity quota reporting

      Layer / File(s)Summary
      Quota bucket labels and request identity
      apps/server/src/provider/antigravityUsageLimits.ts, apps/server/src/provider/antigravityUsageLimits.test.ts
      Gemini Argon buckets use the trimmed group display name, or Gemini Argon if the name is empty. Other Gemini buckets retain the Gemini label. Quota requests use the ACP User-Agent, and tests check the labels and captured request headers.
      Priority: Normal

      Estimated code review effort: 2 (Simple) | ~8 minutes

      Change: Bug fix

      Possibly related issues

      • pingdotgg/t3code#22876: The issue reports missing Gemini quota buckets with the previous User-Agent. This change updates the quota request User-Agent.
      • pingdotgg/t3code#24800: The issue describes missing Gemini and Gemini Argon windows and the label behavior changed here.
      • pingdotgg/t3code#23080: The change updates quota request identity to expose additional groups, which relates to the missing Gemini quota windows described in the issue.
      • pingdotgg/t3code#23583: The change targets Gemini quota window reporting in Antigravity.

      Possibly related PRs

      Suggested reviewers: maria-rcks, macroscopeapp

      Merge Risk: Minimal · up to 0d448

      No actionable merge-blocking risk was found in the reviewed changes.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Description checkPassedThe description covers the problem, change, scope, approval rationale, verification results, limitations, and agent attribution. It references issue #24800 and gives focused test details.
      Title checkPassedThe title clearly and concisely describes the main fix: exposing Gemini and Gemini Argon Antigravity usage windows.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. 00indexed(GitHub profile, opens in a new tab)commented

      Live verification for the "Not checked" item. Windows 11, consumer Google sign-in (Pro tier), using the same acp_token.json the probe reads, calling v1internal:retrieveUserQuotaSummary on both daily-cloudcode-pa and cloudcode-pa (identical results on each):

      User-AgentBuckets returned
      antigravity/hub/1.0.0 (...) (main)3p-weekly, 3p-5h
      antigravity/acp/1.3.0 (...) (this PR)gemini-weekly, gemini-5h, 3p-weekly, 3p-5h, gemini-argon-wtu-weekly

      Changing the request body (project from the token vs. from loadCodeAssist vs. omitted) made no difference; only the User-Agent version did.

      The Argon group comes back with displayName: "Gemini 4 Argon", so this PR's label resolves to Gemini 4 Argon · Weekly. gemini-argon-wtu-weekly returns remainingFraction: 0 for this account, which matches the Antigravity CLI rejecting Argon requests on the same account with "Individual quota reached".

    5. Closing in favour of #23011, which makes the same change. Thanks for the work here!

    6. juliusmarminge closed this

Sign in to join this conversation.