Repository navigation
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.
Author
|
Updated the endpoint preference order to query RationaleIn live verification against Google's backend:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #172
UsageData.limits. The key islimit_slug(group)plus the window. The headline selection does not change.daily-cloudcode-pabeforecloudcode-pa. Official Antigravity CLI queries the daily endpoint, which returns actual quota and real reset timestamps for Gemini, Claude and GPT, and Gemini 4 Argon. Production currently returns static remainingFraction=1.0 and resetTime=now+window for Gemini.antigravity/cli/1.4.0as the User-Agent. After a successful daily poll, also query the production endpoint and add any groups that daily does not return.Testing
cargo fmt --all -- --check: pass.cargo test --locked: 533 passed, 2 failed. The 2 failures (studio_app::tests::version_text_and_trailing_icon_share_one_update_button,diagnostics_page_has_logging_controls_and_menu_version) also occur on unmodified v2.19.4 (d0ab8b7) with a Japanese Windows UI language.src/poller/tests.rscover the group limits, the endpoint order and the merge of production groups. They use dummy data.cargo build --locked --releaseand ran the build with a theme that readsantigravity.limits.*. The taskbar showed live values for the Gemini, Claude and GPT, and Gemini 4 Argon groups.Checklist