CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Antigravity quota labels are mis-mapped: `Claude` shows Gemini Pro remaining quota

Open Theoz001 opened this issue 8 months ago • 0 comments

In CodexBar 0.18.0-beta.3, the Antigravity provider appears to map quota labels incorrectly.

The UI/CLI shows:

  • Claude: 80% left
  • Gemini Pro: 100% left

But Antigravity's local GetUserStatus response shows that:

  • Gemini 3.1 Pro has remainingFraction = 0.8
  • Gemini 3 Flash has remainingFraction = 1.0
  • Claude models do not currently expose a usable remainingFraction value in this session

This suggests CodexBar is assigning the Gemini Pro quota to the Claude label.

Environment

  • CodexBar version: 0.18.0-beta.3 (CFBundleVersion 51)
  • macOS
  • Antigravity plan: Pro
  • Reproduced on: 2026-03-16 (Asia/Shanghai)

Steps To Reproduce

  1. Open Antigravity and ensure the account is signed in.
  2. Open CodexBar with the antigravity provider enabled.
  3. Check the Antigravity quota display in the menu/widget, or run:
'/Applications/CodexBar.app/Contents/Helpers/CodexBarCLI' usage --provider antigravity --status --pretty
  1. Compare the displayed values with Antigravity's local GetUserStatus response.

Actual Result

CodexBarCLI reports:

== Antigravity (local) ==
Claude: 80% left
Resets in 1h 23m
Gemini Pro: 100% left
Resets in 5h

Expected Result

The 80% value should be attached to Gemini Pro, not Claude.

Based on the local Antigravity response for this session:

  • Gemini 3.1 Pro (High): remainingFraction = 0.8
  • Gemini 3.1 Pro (Low): remainingFraction = 0.8
  • Gemini 3 Flash: remainingFraction = 1.0

So the displayed labels should follow the actual model/group mapping from Antigravity's clientModelConfigs, rather than assuming a fixed primary => Claude, secondary => Gemini Pro ordering.

Evidence

1. CodexBarCLI output

'/Applications/CodexBar.app/Contents/Helpers/CodexBarCLI' usage --provider antigravity --status --pretty

Observed output:

== Antigravity (local) ==
Claude: 80% left
Resets in 1h 23m
Gemini Pro: 100% left
Resets in 5h
Account: [email protected]
Plan: Pro

2. Raw Antigravity local response

I queried the Antigravity local service directly and got a successful 200 response from:

https://127.0.0.1:61278/exa.language_server_pb.LanguageServerService/GetUserStatus

The response included:

  • Gemini 3.1 Pro (High) -> quotaInfo.remainingFraction: 0.8
  • Gemini 3.1 Pro (Low) -> quotaInfo.remainingFraction: 0.8
  • Gemini 3 Flash -> quotaInfo.remainingFraction: 1.0
  • Claude Sonnet 4.6 (Thinking) -> no usable remainingFraction
  • Claude Opus 4.6 (Thinking) -> no usable remainingFraction

This does not match CodexBar's displayed label mapping.

Suspected Cause

The Antigravity integration likely reduces the response into primary / secondary buckets and then applies fixed labels afterward.

That is fragile because Antigravity's available model set and ordering can change. The mapping should instead be derived from actual model metadata in clientModelConfigs, for example by grouping models based on model name / label prefixes such as:

  • Gemini ... Pro
  • Gemini ... Flash
  • Claude ...

Suggested Fix

Instead of hardcoding the Antigravity display labels for primary and secondary, derive them from the raw clientModelConfigs entries that contain quotaInfo.remainingFraction.

At minimum:

  1. Parse all models with quota data from clientModelConfigs.
  2. Group by real provider/model family (Gemini Pro, Gemini Flash, Claude, etc.).
  3. Compute the displayed bucket from grouped model metadata, not from array position or primary / secondary slot order.
  4. If a family has no remainingFraction, avoid showing a misleading percentage for it.

Notes

This looks like a client-side mapping issue in CodexBar rather than an Antigravity-side quota issue.

Theoz001 avatar Mar 16 '26 06:03 Theoz001