Repository navigation
Conversation
Google's quota endpoint can answer with the Claude and GPT pool alone. extract_limits fell back to groups[0] when no group said Gemini, so the 3P windows wore the plan's Session (5-hour) and Weekly (7-day) labels and their Claude/GPT lines vanished. With no Gemini group the plan's meters are simply absent and the pool keeps its own allowance labels. Fixes omacom#16906
[Low impact] This PR appears safe to merge. SummaryFixes Antigravity quota labels when Google returns groups without Gemini.
No actionable issues found. Test coverage was inspected; tests were not run. Acknowledged scope: AnPod explicitly deferred Gemini 4 Argon support and quota reads through the agy CLI RPC to PR #16642. Reviews (1) · Last reviewed commit: "Label an Antigravity answer with no Gemi..." · Reviewed by Greptile |
|
Reviewed at 44e06ef, nothing found to change. Reproduced on an Omarchy worker VM. The new case in Second opinion: Codex Medium and muse-wonder (via pi, thinking high) both reviewed it and found no defects. They agreed with my reading, though their independence from it is not guaranteed. They checked both callers of Two things for whoever merges, neither a defect in this change:
Waiting on the maintainer. |
|
Superseded by #20916, which delegates to |
Fixes #16906 (the misidentification part)
Problem
omarchy-agent-usage-agy'sextract_limitspicks the plan's group withnext(..., groups[0])— when no group's name contains "gemini", the first group stands in for Gemini. Google's quota endpoint can answer with theClaude and GPT modelspool alone (the reporter captured such a payload), and then the 3P3p-5h/3p-weeklybuckets are displayed as the plan-levelSession (5-hour)andWeekly (7-day)meters, while the pool's own correctly-named allowance lines vanish.Fix
When no group matches "gemini", no plan group is selected: the fallback to
groups[0]is dropped, the plan's Session/Weekly meters are simply absent, and the answer's groups keep their own allowance labels in the existing second pass (Claude/GPT Weekly, …). The synthetic-Gemini path for a groups-less answer is untouched, and so is every other shape.The issue's other two asks — surfacing the
Gemini 4 Argonbucket and reading quotas through the agy CLI RPC — are a larger change already covered by open PR #16642; this PR only fixes the mislabeling and composes with it.Test
New case in
test/shell.d/agent-usage-agy-limits-test.sh: agroupspayload with onlyClaude and GPT modelsyields[("Claude/GPT Weekly", 0.02)]— without the fix it yields[("Session (5-hour)", 0.0), ("Weekly (7-day)", 0.02)](verified red before the fix, green after). All 44agent-usage-*test files pass.