Show Antigravity Gemini quota when the summary omits it #26582
Closedducan-ne(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/26582/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- @@ -279,8 +281,11 @@279281 const summary = yield* fetchWindows("retrieveUserQuotaSummary", (response) =>280282 decodeSummary(response).pipe(Effect.map(summaryWindows)),281283 );282- const windows = summary.length284+ // Some accounts get only the Claude & GPT buckets from the summary; Gemini quota is then only285+ // reported per model.286+ const modelFamily = summary.length === 0 ? undefined : "Gemini";287+ const windows = summary.some((window) => isGeminiBucket(window.id))283288 ? summary284- : yield* fetchWindows("fetchAvailableModels", (response) =>285- decodeModels(response).pipe(Effect.map(modelWindows)),286- );289+ : [290+ ...summary,291+ ...(yield* fetchWindows("fetchAvailableModels", (response) =>
Sign in to join this conversation.
Walkthrough
The Antigravity quota probe now checks whether summary windows include a Gemini bucket. If they do not, it fetches Gemini model quotas and merges those windows with the summary results.
Changes: Antigravity quota discovery
apps/server/src/provider/antigravityUsageLimits.tsmodelWindowscan filter for the Gemini family. The probe fetches and merges Gemini model quotas when the summary is empty or has no Gemini bucket; otherwise, it uses the summary alone.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related issues
Possibly related PRs
Suggested labels:
bugfixSuggested reviewers:
maria-rcks,macroscopeappMerge Risk:
Low · up to
8ca3fThe fallback may hide Gemini quota or an otherwise usable summary during transient failures and slow cold-cache probes. The impact is limited but should be fixed.
Pre-merge checks:
3 · 
1
Full details: Title check
Explanation
The title states the main change: when the Antigravity usage summary lacks a Gemini bucket, the probe now shows Gemini quota. It matches the raw summary and PR objectives, which describe reading fetchAvailableModels to add Gemini windows when the summary has no Gemini bucket.
Full details: Description check
Explanation
The description explains the problem and the change. It names the cause: retrieveUserQuotaSummary returns only Claude and GPT buckets for some accounts, and the probe calls fetchAvailableModels only when the summary is empty. It also states the fix and the unchanged empty-summary behavior. The template asks for Scope and approval and Verification sections. Both are missing, and the description has no reproduction steps, test results, or linked issue. The required sections are therefore incomplete, though the core problem and change are clear.
Resolution
Add a Scope and approval section that links the triaged bug issue or maintainer-approved discussion, or explains why this small fix qualifies without one. Add a Verification section that lists the focused tests or manual checks run and their observed results, and states anything not checked. If an agent produced the change, end with the model and harness used. Optionally add reproduction steps to the Problem section.
Finishing Touches
🧪 Generate unit tests (beta)
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.