Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity usage limits missing with antigravity-cli 1.5.12 (token moved from acp_token.json to antigravity-oauth-token) #39112

ClosedViniMTrevisan(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Install antigravity-cli 1.5.12 (via Homebrew Cask) and enable the Antigravity provider in T3 Code.
  2. Sign in to Antigravity with Google and run one or more threads (e.g., gemini-4-neon / gemini-4-hydrogen).
  3. Open Usage (All environments / All providers).

Expected behavior

Antigravity should appear in the Usage Limits section alongside other configured providers (Claude Code, Codex, etc.) showing current quota/usage windows, and all newer Antigravity model IDs should resolve cleanly.

Actual behavior

Antigravity does not appear in Usage Limits.

Root cause found locally:

  • makeAntigravityUsageProbe looks for: acp_token.json with schema { client_id, client_secret, refresh_token, project_id? }.
  • antigravity-cli 1.5.12 no longer writes acp_token.json. Instead it writes antigravity-acp/antigravity-oauth-token with structure: { "token": { "access_token": "...", "token_type": "...", "refresh_token": "...", "expiry": "...", "expires_in": 3599 }, "auth_method": "...", "id_token_email": "..." }
  • Because acp_token.json does not exist, makeAntigravityUsageProbe returns reason: "unsupported" ("Sign in with Google to see Antigravity limits.") even though the user is signed in and actively using Antigravity.

(Minor related note in antigravityUsageReader.ts: MODEL_IDS currently stops at 1419 / gemini-4-argon, so newer IDs like 1525–1535 fall back to antigravity-model-15xx when a step lacks an explicit model name.)

Impact

Major degradation or frequent failure

Version or commit

0.1.11-nightly.20261119.4928

Environment

macOS 27.2.1 (arm64), T3 Code (Nightly) 0.1.11-nightly.20261119.4928, antigravity-cli 1.5.12 (1.5.12,5281398513336320), Antigravity (gemini-4-neon, gemini-4-hydrogen)

Logs or stack traces

# Files present in ~/.t3/userdata/providers/antigravity/<hash>/antigravity-acp/:
antigravity-oauth-token   (keys: ["token", "auth_method", "id_token_email"])
# Missing file expected by makeAntigravityUsageProbe:
acp_token.json            (does not exist)

# server.trace.ndjson:
# AntigravityProvider.refreshUsage -> Success (falls back to unsupported / no limits)
# readAntigravityUsage.readFile -> 73 ok, 0 failures (conversations/*.db are read cleanly)

Screenshots, recordings, or supporting files

No response

Workaround

No response

  1. ViniMTrevisan(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. This is the same problem as #34327, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.