Skip to content

[Bug]: Antigravity collapses Gemini and Claude/GPT pools, falsely reporting total "Exhausted" state and "Pro" plan for Google AI Ultra #495

Closed

Description

@spencer-shadley

Description

In Win-CodexBar v0.56.8, Antigravity (AGY) displays misleading quota information for users with Google AI Ultra subscriptions:

  1. False "Exhausted" Status & Conflated Quota Pools: When the Claude/GPT third-party weekly pool is exhausted (100% used), Win-CodexBar marks the entire Antigravity provider as "Exhausted" in red, even though Gemini models have active quota remaining (e.g. 13% weekly headroom).
  2. Missing Discrete Model Family Pools: The UI only renders a single "Session" bar and a single "Weekly" bar, collapsing disjoint model families (Gemini vs Claude/GPT) instead of showing all 4 separate rate windows that Google Antigravity exposes.
  3. Plan Naming: Win-CodexBar reports the plan as "Pro" when the subscriber is on the top-tier Google AI Ultra plan.

Comparison / Evidence

Official Google Antigravity UI:

The official Antigravity status popup separates models into two independent families, each with its own 5-hour and weekly limits:

  • Gemini Models:
    • Weekly Limit: 13% remaining (fully refreshes in 3 days, 15 hours)
    • 5-Hour Limit: 6% remaining (fully refreshes in 4 hours, 51 minutes)
  • Claude and GPT models:
    • Weekly Limit: 0% remaining (refreshes in 21 hours, 18 minutes)
    • 5-Hour Limit: 100% remaining ("You have hit your weekly limit, the 5-hour limit does not currently apply. Your weekly limit will fully refresh in 21 hours, 18 minutes.")

Win-CodexBar UI:

Win-CodexBar collapses these into:

  • Plan: Pro (should be Google AI Ultra)
  • Session: 4% used
  • Weekly: 100% used — Exhausted

Because the UI stamps the provider as Exhausted based on the third-party weekly cap reaching 100%, users are led to believe Antigravity is unusable, when in reality Gemini models are completely available with active headroom.


Root Cause Analysis in Source

Looking into the Rust backend:

1. most_constrained picks max across disjoint model families (rust/src/providers/antigravity/quota_summary.rs):

In rust/src/providers/antigravity/quota_summary.rs, most_constrained() selects a single RateWindow per duration:

fn most_constrained(windows: &[NamedRateWindow], minutes: u32) -> Option<RateWindow> {
    windows
        .iter()
        .filter(|window| window.window.window_minutes == minutes)
        .max_by(|left, right| {
            left.window
                .used_percent
                .total_cmp(&right.window.used_percent)
                .then_with(|| left.name.cmp(&right.name))
        })
        .map(|window| window.window.clone())
}

When Google's GetQuotaSummary returns all 4 windows:

  • antigravity-quota-summary-gemini-5h (~4% used)
  • antigravity-quota-summary-gemini-weekly (~87% used)
  • antigravity-quota-summary-3p-5h (0% used, disabled)
  • antigravity-quota-summary-3p-weekly (100% used)

most_constrained evaluates both weekly windows (gemini-weekly at 87% vs 3p-weekly at 100%) and selects 3p-weekly as the single secondary ("Weekly") window.

The desktop UI/menu bar only binds primary and secondary and ignores extra_rate_windows. Since secondary.used_percent >= 100.0, the entire provider is stamped as Exhausted.

2. Plan Labeling (rust/src/providers/antigravity/mod.rs):

Lines 767–772 and 865–872 read:

plan_info.plan_display_name.or(plan_info.plan_name)

Google's GetUserStatus endpoint returns "Pro" in plan_name even for Google AI Ultra subscribers, while subscription tier details specify the Ultra plan.


Suggested Fix

  1. Separate Model Families in UI: Expose both "Gemini Models" and "Claude & GPT Models" (or render extra_rate_windows), matching how official Antigravity and providers with multiple sub-pools (e.g. Cursor Models vs Other Models) display distinct pools.
  2. Provider Exhaustion Guard: Do not stamp the entire Antigravity provider as Exhausted if only one model family has hit its weekly cap while the other model family still has available quota.
  3. Ultra Plan Detection: Check tier attributes in GetUserStatus response to display Google AI Ultra where applicable.

Activity

  1. spencer-shadley commented on Sep 14, 2026

    @spencer-shadley
    Author

    Here are the side-by-side visual screenshots demonstrating the issue:

    Official Google Antigravity UI popup (4 discrete windows across two model families with active Gemini headroom):

    Google Antigravity UI showing 4 distinct pools

    Win-CodexBar tray popup (falsely stamped as Exhausted and plan shown as 'Pro' instead of Google AI Ultra):

    Win-CodexBar UI showing false Exhausted state

  2. Finesssee commented on Sep 14, 2026

    @Finesssee
    Collaborator

    Hey, thanks for the report. I will fix this ASAP.

  3. added a commit that references this issue on Sep 16, 2026
    32aca3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions