Skip to content

fix(antigravity): show the merged Gemini pool when it mentions Argon - #233

Open
Hugo-Polloli wants to merge 1 commit into
CodeZeno:mainfrom
Hugo-Polloli:fix/antigravity-merged-gemini-pool
Open

Hugo-Polloli wants to merge 1 commit into
CodeZeno:mainfrom
Hugo-Polloli:fix/antigravity-merged-gemini-pool

Conversation

@Hugo-Polloli

Copy link
Copy Markdown

Fixes #231.

Problem

Since about 21 Nov, the Antigravity quota summary reports Gemini as a single group, "Gemini Models", with buckets gemini-5h and gemini-weekly. Its text names Argon among the models in the pool. antigravity_usage_from_summary skips every group for which is_antigravity_separate_gemini_group is true, so this, the only Gemini group, is dropped. data.antigravity_gemini.session and .weekly stay unavailable and the taskbar shows --, while limits[] still carries the right values (as the issue shows).

I matched this from the usage-cache.json shape, not a captured raw response: display name "Gemini Models", bucket ids gemini-5h / gemini-weekly, Claude and GPT pool still filled. With no "argon" in the display name or bucket ids, the description (or a bucket display name) has to be what mentions Argon.

Change

While skipping a separate Argon group, remember it as a fallback for the main Gemini pool when its bucket ids are generic gemini-* ids without "argon". It is used only if no other Gemini group answered. A real Argon pool names Argon in its bucket ids (gemini-4-argon-weekly), so antigravity_argon_never_fills_the_main_pool_without_other_named_pools still passes unchanged.

Checks

  • New test antigravity_merged_gemini_pool_that_mentions_argon_still_shows: fails on main, passes with the change.
  • cargo fmt --all -- --check, cargo test (638 passed), cargo build --release on Windows 11.
  • Ran the release build on my machine: the Gemini column shows the session and weekly values again.

🤖 Generated with Claude Code

Google now reports Gemini as one "Gemini Models" group (buckets gemini-5h and
gemini-weekly) whose text names Argon among its models. The summary parser
skips any group mentioning Argon as the separate Gemini 4 Argon pool, so the
only Gemini group was dropped and the taskbar showed "--" for session and
weekly while limits[] still held the values.

Keep such a group as a fallback for the main pool when no other Gemini group
answers and its bucket ids are generic gemini-* without "argon". A real Argon
pool names Argon in its bucket ids, so the existing rule that Argon never fills
the main pool still holds.

Fixes CodeZeno#231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hugo-Polloli

Copy link
Copy Markdown
Author
image gemini usage working again with this fix

@juanre7

juanre7 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Verified this fix locally on Windows 11 with v2.25.3 (fca0498) and Antigravity CLI 1.5.16.

Before the patch, I was hitting #231: usage-cache.json had antigravity_gemini.session.available: false and weekly.available: false (showing -- in the taskbar), while limits[] still carried the live gemini-5h and gemini-weekly readings.

Checks run locally with this PR applied:

  • cargo fmt --all -- --check: passed
  • cargo test --locked: 638 passed, 0 failed (including antigravity_merged_gemini_pool_that_mentions_argon_still_shows)
  • cargo build --locked --release: passed
  • Live run: antigravity_gemini.session and antigravity_gemini.weekly immediately report available: true with real percentages and reset timestamps again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antigravity Gemini shows "--" in taskbar since the 21 Nov build (no limit is_active, top-level session/weekly unavailable)

2 participants