fix(server): show Gemini and Gemini Argon Antigravity usage windows #24801
main fromrefs/pull/24801/head·opened View on GitHubProblem#
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.0as the probe User-Agent instead ofantigravity/hub/1.0.0. In my testing the backend returns all quota groups for the ACP subclient and only the Claude/GPT group forhub. - Label
gemini-argon-*buckets with the group display name, sogemini-argon-wtu-weeklyis no longerGemini · Weekly, which collided withgemini-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.tsasserting the Argon label and theantigravity/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
hubversusacpresponse 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
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
0d448f5Macroscope'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).No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: a96cf08
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
afaf65fa-5d1a-494a-ab22-57e3b9f49221
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.tsapps/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 theantigravity/acp/1.3.0User-Agent. Tests cover the labels and request header.Changes: Antigravity quota reporting
Priority:Layer / File(s) Summary Quota bucket labels and request identity
apps/server/src/provider/antigravityUsageLimits.ts,apps/server/src/provider/antigravityUsageLimits.test.tsGemini Argon buckets use the trimmed group display name, or Gemini Argonif the name is empty. Other Gemini buckets retain theGeminilabel. Quota requests use the ACP User-Agent, and tests check the labels and captured request headers. NormalEstimated 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
- pingdotgg/t3code#24307: Both changes modify how Antigravity quota reporting obtains Gemini usage windows.
Suggested reviewers:
maria-rcks,macroscopeapp
Merge Risk:
Minimal · up to0d448-
No actionable merge-blocking risk was found in the reviewed changes.
Pre-merge checks:
4-
Check name Status Explanation Description check The description covers the problem, change, scope, approval rationale, verification results, limitations, and agent attribution. It references issue #24800and gives focused test details.Title check The title clearly and concisely describes the main fix: exposing Gemini and Gemini Argon Antigravity usage windows. Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check 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
-
Live verification for the "Not checked" item. Windows 11, consumer Google sign-in (Pro tier), using the same
acp_token.jsonthe probe reads, callingv1internal:retrieveUserQuotaSummaryon bothdaily-cloudcode-paandcloudcode-pa(identical results on each):User-Agent Buckets returned antigravity/hub/1.0.0 (...)(main)3p-weekly,3p-5hantigravity/acp/1.3.0 (...)(this PR)gemini-weekly,gemini-5h,3p-weekly,3p-5h,gemini-argon-wtu-weeklyChanging the request body (
projectfrom the token vs. fromloadCodeAssistvs. 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 toGemini 4 Argon · Weekly.gemini-argon-wtu-weeklyreturnsremainingFraction: 0for this account, which matches the Antigravity CLI rejecting Argon requests on the same account with "Individual quota reached".Closing in favour of #23011, which makes the same change. Thanks for the work here!
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes