Repository navigation
Show every Antigravity quota group, including Gemini 4 Argon - #173
Conversation
The summary keeps one Gemini group for the 5h/weekly headline and drops the rest, so themes cannot show every group (for example Claude and GPT). Add each group's 5h and weekly buckets to UsageData.limits, keyed by group name and window.
daily-cloudcode-pa answers retrieveUserQuotaSummary with the Claude and GPT group only, and the poller stops at the first endpoint that succeeds, so the Gemini group never reached the limits. cloudcode-pa returns both groups.
The daily endpoint returns the "Gemini 4 Argon" quota group only when the request carries the CLI-style User-Agent (antigravity/cli/<version>), and the production endpoint never returns it. Production still has to stay the source for the groups it does return, because its Gemini weekly value is the one shown by the official clients. Send antigravity/cli/1.4.0 on all Antigravity requests, and after a successful production poll also query the daily endpoint and append only the groups production lacks. A failing daily call is logged and ignored, and a failing production call still falls through to daily alone, so behaviour is no worse than before. The headline 5h/weekly pair is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FYP1wUrFhstiSe86HRgxRv
Why: Production cloudcode-pa currently returns static remainingFraction=1.0 and resetTime=now+window for the Gemini quota group, freezing the Gemini quota display at 100% remaining. Official agy CLI queries daily-cloudcode-pa which returns actual quota fractions and real reset timestamps for Gemini, Claude and GPT, and Gemini 4 Argon. We query daily first to get accurate quota across all groups, and keep production as a fallback and to supplement any groups missing in daily.
|
Updated the endpoint preference order to query RationaleIn live verification against Google's backend:
|
|
+1 for this feature! Having Just a heads-up for @yo-xe: it looks like |
… design authoritative, so this branch drops its own endpoint order and the production merge. What stays: every group and window as UsageLimit, Argon kept out of the main Gemini pool, and the agy CLI User-Agent that the daily summary needs to return the Gemini 4 Argon group.
|
Thanks for the heads-up. I merged |
Summary
Closes #172
UsageData.limits. The key islimit_slug(group)plus the window. Themes can then show groups other than the two headline pools, for exampleGemini 4 Argon.Gemini 4 Argongroup as the main Gemini pool. Its name contains "gemini", but it has its own quota pool. Without this rule, the headline Gemini values can come from Argon when Argon is listed first.antigravity/cli/1.4.0as the User-Agent. The daily summary returns theGemini 4 Argongroup only for this agy CLI form.The branch now follows the design of #177 and #178: the first endpoint that returns a summary is authoritative, and the poller does not merge endpoints. The earlier endpoint-order and production-merge changes are removed.
Testing
cargo fmt --check: pass.cargo test: 559 passed, 3 failed. The same 3 tests also fail on unmodified v2.20.0 (b1dfecc) on my machine (Japanese Windows UI language):studio_app::tests::version_text_and_trailing_icon_share_one_update_button,studio_app::tests::diagnostics_page_has_logging_controls_and_menu_versionandpoller::retry_after::tests::oversized_headers_store_bounded_cooldowns_and_requests_resume_after_expiry.antigravity_summary_exposes_every_group_and_window_as_limitsuses dummy data, with Argon listed first.antigravity/cli/1.4.0,limitscontainsgemini_models_*,claude_and_gpt_models_*andgemini_4_argon_weekly. Withantigravity/2.24.0, thegemini_4_argon_weeklylimit is not returned.Checklist