Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Related, not duplicates: #39112 / #34327 (token file moved to antigravity-oauth-token, fixed by #38957), #39607 / #39485 (keyring sign-ins), #40015 (Pro/Plus quota always 100%), #40101 (Enterprise per-variant rows). Those are about reading the sign-in or parsing the quota answer. This one is about Google refusing the quota request entirely for accounts that agy routes to the AICode backend.
Area
apps/server
Steps to reproduce
- Sign an
oauth-personalAntigravity instance into a Google account that agy 1.5.13 routes to AICode. I reproduced with two accounts: a consumer Gmail account and a Google Workspace account without a Gemini Code Assist license. - Run a turn. It works, and Gemini answers normally.
- Open Usage → Limits.
The ACP log for these accounts shows the routing:
code_assist_client.go:509] CCPA routed this account to AICode, but AICode FetchConfig failed, serving CCPA's flags
Expected behavior
Antigravity shows the account's quota windows. If Google cannot provide them for this kind of account, the panel says so, for example "Google doesn't report limits for this account", instead of showing nothing or "Sign in with Google".
Actual behavior
Antigravity has no limits. With the access token from the profile's antigravity-acp/antigravity-oauth-token (the file #38957 reads), I sent the same request as makeAntigravityUsageProbe (Authorization: Bearer …, body {}, no project_id in the token):
| Endpoint | Consumer Gmail | Workspace (no license) |
|---|---|---|
daily-cloudcode-pa…/v1internal:retrieveUserQuotaSummary |
403 You do not have a valid license of this product… (#3501) |
403, same message |
daily-cloudcode-pa…/v1internal:fetchAvailableModels |
403 The caller does not have permission |
403, same message |
same two methods on cloudcode-pa.googleapis.com (prod) |
403, same messages | 403, same messages |
cloudcode-pa…/v1internal:loadCodeAssist |
200, no currentTier, no cloudaicompanionProject |
200, allowedTiers: [standard-tier] with userDefinedCloudaicompanionProject: true, no current tier |
The probe turns both failures into [] (orElseSucceed(() => [])), so the panel shows no Antigravity windows and gives no reason.
Prompts on the same instances work fine through ACP (session/prompt → end_turn). Only the quota surface is unavailable.
Impact
Minor bug or occasional failure: Antigravity works, but usage limits are invisible for these accounts, with no hint why.
Version or commit
Request shape checked against makeAntigravityUsageProbe in 0.1.10 and against #38957 (0.1.11). Both send the same retrieveUserQuotaSummary → fetchAvailableModels requests that return 403 above.
Environment
macOS 26 (arm64) and Linux x86_64, antigravity CLI 1.5.13 (binaryPath set to the agy CLI), authMethod: oauth-personal.
Suggested implementation
- Say why instead of returning nothing. When both quota calls fail with 403, return
makeUnavailableUsageLimits({ reason: "unavailable", message: "Google doesn't report Antigravity limits for this account." })instead of an empty window list. Add the Googlestatus/messageto the trace, the way the Codex/Claude probes do. This is a small change inmakeAntigravityUsageProbeand could ship as-is. - Detect the routing up front.
loadCodeAssistreturns 200 for these accounts with nocurrentTier. That is a cheap signal to skip the two quota calls and show the reason from (1) straight away. - Longer term, ask agy for usage instead of calling Google directly. agy already decides between CCPA and AICode per account. If agy exposes usage over ACP (or a
models/usage command), reading it from there would cover AICode-routed accounts and avoid re-implementing Google's routing in T3. I couldn't find a public AICode quota method:aicode.googleapis.comreturns 404 forretrieveUserQuotaSummary,retrieveUserQuota,fetchAvailableModelsandfetchConfigunderv1alpha,v1internalandv1. So this probably needs agy support or more digging.
Workaround
None. Antigravity itself works; only the limits are missing.
Activity