Repository navigation
fix(server): read Antigravity quota from official CLI - #43791
Closed
PabloValencia14 wants to merge 1 commit into
Closed
PabloValencia14 wants to merge 1 commit into
PabloValencia14 wants to merge 1 commit into
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Antigravity provider snapshots currently omit subscription quota windows. This change reads the official
agyCLI's read-only/usagecommand 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./usagesends no generation prompt and consumes no model-generation tokens.The standalone
agyexecutable 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.