Skip to content

fix(server): read Antigravity quota from the CLI sign-in - #158

Merged
nullStack65 merged 1 commit into
release/native-0.1.10from
fix/antigravity-cli-usage-limits
Nov 21, 2026
Merged

nullStack65 merged 1 commit into
release/native-0.1.10from
fix/antigravity-cli-usage-limits

Conversation

@nullStack65

@nullStack65 nullStack65 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Antigravity usage stays blank after a normal agy sign-in. The probe only read antigravity-acp/acp_token.json, and current agy does not write that file. It stores the Google access token in the system keyring (gemini / antigravity). The probe now uses that saved token, or the same JSON under the profile or ~/.gemini/antigravity-cli, and does not call the token endpoint when there is no client secret.

A summary that contains only untouched Claude/GPT placeholder buckets is not treated as the Gemini reading. The probe asks the model endpoint in that case.

Evidence

  • vp test run src/provider/antigravityUsageLimits.test.ts: 26 passed. New cases cover a keyring/file access token with no /token call, a lapsed token that is not sent, and a placeholder-only summary.
  • vp run typecheck in apps/server passed.
  • Format and lint of the two changed files passed. The local pre-commit knip:check already fails on release/native-0.1.10 for four untouched scripts (.github/scripts/mirror-play-apk.cjs, apps/web/scripts/verify-built-boot.ts, scripts/resolve-nightly-release.ts, scripts/smoke-cli-archive.ts), so this commit did not go through that hook.

Limits

  • Without a client secret, a lapsed access token cannot be refreshed here. A running agy session refreshes the keyring token. The Antigravity app does not need to be open.
  • The installed app keeps the old probe until this release line is updated.

Deploy: none

Model: grok-4.7
Task: fix
Agent: grok-4.7
Harness: grok

agy 1.5 stores the Google access token in the keyring and does not write
acp_token.json, so T3 treated a signed-in account as signed out. The usage
probe now sends that saved access token, and it does not treat untouched
Claude/GPT placeholder buckets as the Gemini reading.

Model: grok-4.7
Task: fix
Agent: grok-4.7
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65
nullStack65 merged commit 145f799 into release/native-0.1.10 Nov 21, 2026
3 of 5 checks passed
@nullStack65
nullStack65 deleted the fix/antigravity-cli-usage-limits branch November 21, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants