Skip to content

fix(server): read Antigravity quota from official CLI - #43791

Closed
PabloValencia14 wants to merge 1 commit into
pingdotgg:mainfrom
PabloValencia14:codex/antigravity-cli-usage
Closed

PabloValencia14 wants to merge 1 commit into
pingdotgg:mainfrom
PabloValencia14:codex/antigravity-cli-usage

Conversation

@PabloValencia14

@PabloValencia14 PabloValencia14 commented Nov 26, 2026 •

Copy link
Copy Markdown

Antigravity provider snapshots currently omit subscription quota windows. This change reads the official agy CLI's read-only /usage command in JSON mode and maps its remaining quota and reset times into T3 Code's existing Usage data.

The read uses each provider instance's GEMINI_HOME, removes ambient Google API credentials, disables CLI auto-updates, and bounds execution and output. A per-account five-minute cache prevents the one-minute provider health check from repeatedly launching the CLI. /usage sends no generation prompt and consumes no model-generation tokens.

The standalone agy executable must be installed and available on the server's PATH. When it is absent or returns an unrecognized result, T3 reports the quota as unavailable. Please confirm whether this optional CLI dependency is acceptable for Antigravity usage reporting.

Validation: changed files formatted. The full server typecheck currently reports 145 diagnostics in unrelated scripts; none point to files changed by this PR. No tests were run. The pre-commit lint/knip hook could not complete in this clean checkout because workspace dependencies/plugins are missing.

Prepared with GPT-6.1 Luna in T3 Code.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 26, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Thanks for this. #43788 makes the same change and is the one being kept.

#43788 restores the same CLI-based quota display using T3's configured Antigravity executable, including managed installs. This proposal instead requires a separate agy executable on PATH, so the other implementation covers the existing installation paths more completely.

Your approach of letting the official CLI retrieve quotas is shared by that proposal. Keeping the work together there avoids maintaining two implementations of the same restoration.

Closing as a duplicate.

@PabloValencia14 PabloValencia14 changed the title fix(server): read Antigravity limits via the official CLI fix(server): read Antigravity quota from official CLI Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants