Repository navigation
fix(agents): add agy CLI quota fallback and widen panel - #16999
alihancaliskanx wants to merge 3 commits into
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds an
Reviews (4) · Last reviewed commit: "Drop the test gate from the agy CLI fall..." · Reviewed by Greptile |
Consumer and Pro Antigravity accounts without a Google Cloud project receive a 403 Forbidden response from retrieveUserQuotaSummary on the Cloud Code API endpoint. Fall back to `agy --print /usage` when the API refuses the request so quota windows and reset times are reliably reported. Also correctly identify Gemini 4 Argon groups, and expand the agents panel width from 380px to 400px so multi-agent subscription switch buttons fit without title truncation.
Limit the agy CLI usage fallback to agy's own account so accounts from other harnesses cannot inherit its limits. Preserve the plan returned by loadCodeAssist or cached for that account instead of defaulting to Pro.
21ac891 to
a82c004
Compare
The fallback was skipped whenever SANDBOX was set, which the test harness uses but so do other tools (Gemini CLI's sandbox sets it), silently restoring "Sign-in expired". The limits test now plants a failing agy stub on PATH instead, as the harness test does for omp, and the fallback runs agy with stdin on /dev/null like omp_usage(), so the CLI can never wait on the collector's input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev>
|
Thanks for this, @alihancaliskanx. I reviewed it on a worker built from the Omarchy ISO and pushed one small fix to your branch. The main question about the fallback is now for the maintainer. What ran. The four Pushed (4b505ae). Whenever Not verified, and why. The worker has no Antigravity account and no
Other findings, left for you and the maintainer:
Review. Two second opinions, Codex Medium and muse-wonder (via pi, thinking high), read the branch. Between them they found the Next. This waits on the maintainer to choose how to fix the missing Gemini meters on consumer accounts: this CLI fallback, the |
|
Superseded by #20916, which delegates to |


Summary
This PR resolves two usability issues with the agents dashboard and Antigravity quota tracking:
omarchy-agent-usage-agyqueriesv1internal:retrieveUserQuotaSummaryondaily-cloudcode-pa.googleapis.com. Standard consumer/Pro accounts that are not attached to a Google Cloud developer/enterprise project receive a403 Forbiddenresponse (cloudaicompanionProjectis None), causing the collector to mark the sign-in as expired. When the Cloud Code endpoint refuses the request with 401/403, the collector now falls back toagy --print /usage, parsing live quota groups (Gemini, Claude/GPT, and Argon) with UTC timestamps.Ensures
Gemini 4 Argongroups are not misclassified underGemini Models.Expands
contentWidthfromStyle.space(380)toStyle.space(400)so that multi-agent subscription switch buttons ("Claude Code", "Codex", "Antigravity") have sufficient horizontal room without label clipping.Testing
agent-usage-agy-harness-test.sh,agent-usage-agy-limits-test.sh,agent-usage-agy-scanner-test.sh,agent-usage-agy-timestamps-test.sh) — all 4 pass.agent-usage-agy-limits-test.shasserting CLI fallback behaviour when the quota endpoint responds with 403.omarchy-agent-usage-agyon a machine with active Antigravity Pro credentials.