Antigravity quota labels are mis-mapped: `Claude` shows Gemini Pro remaining quota
In CodexBar 0.18.0-beta.3, the Antigravity provider appears to map quota labels incorrectly.
The UI/CLI shows:
Claude: 80% leftGemini Pro: 100% left
But Antigravity's local GetUserStatus response shows that:
Gemini 3.1 ProhasremainingFraction = 0.8Gemini 3 FlashhasremainingFraction = 1.0- Claude models do not currently expose a usable
remainingFractionvalue 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
- Open Antigravity and ensure the account is signed in.
- Open CodexBar with the
antigravityprovider enabled. - Check the Antigravity quota display in the menu/widget, or run:
'/Applications/CodexBar.app/Contents/Helpers/CodexBarCLI' usage --provider antigravity --status --pretty
- Compare the displayed values with Antigravity's local
GetUserStatusresponse.
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.8Gemini 3.1 Pro (Low):remainingFraction = 0.8Gemini 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.8Gemini 3.1 Pro (Low)->quotaInfo.remainingFraction: 0.8Gemini 3 Flash->quotaInfo.remainingFraction: 1.0Claude Sonnet 4.6 (Thinking)-> no usableremainingFractionClaude Opus 4.6 (Thinking)-> no usableremainingFraction
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 ... ProGemini ... FlashClaude ...
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:
- Parse all models with quota data from
clientModelConfigs. - Group by real provider/model family (
Gemini Pro,Gemini Flash,Claude, etc.). - Compute the displayed bucket from grouped model metadata, not from array position or
primary/secondaryslot order. - 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.