Repository navigation
Description
Before submitting
- I searched open and closed issues and checked the related reports listed below.
- I included reproduction steps and evidence from the installed application.
Area
apps/server — Antigravity subscription usage probe; Usage → Limits
Summary
With the official Antigravity CLI configured as the provider's custom executable, T3 reports the provider as ready and authenticated and successfully completes a real model turn. However, Usage → Limits omits Antigravity because the usage probe still requires the standalone ACP runtime's antigravity-acp/acp_token.json file.
The resulting message asks the user to sign in, even though this provider is already authenticated.
Steps to reproduce
- Install and sign in to the official Antigravity CLI. The affected installation uses
agy1.5.2 on Windows. - Enable Antigravity in T3 Code and set its custom executable path to the installed
agy.exe:{ "providerInstances": { "antigravity": { "driver": "antigravity", "enabled": true, "config": { "binaryPath": "C:\\Users\\<user>\\AppData\\Local\\agy\\bin\\agy.exe" } } } } - Confirm that the provider is ready/authenticated and send a prompt.
- Open Usage → Limits with All environments / All providers selected.
- Inspect the provider's cached
usageLimits.
Expected behavior
T3 should support subscription-limit retrieval for its supported agy acp executable path, where the CLI/account exposes that information.
If limits cannot be retrieved for this authentication backend, T3 should accurately explain that limitation rather than presenting the absence of a legacy token file as a request to sign in again.
Actual behavior and verification
agy --version:1.5.2.agy acp --helpsucceeds.- T3 provider cache reports
status: "ready",auth.status: "authenticated", andauth.type: "oauth-personal". - A real T3 delegated turn using the Antigravity provider and requested model
gemini-3.8-flash-highcompleted and returned the exact requested text,ANTIGRAVITY_T3_OK. - Usage → Limits displays Codex but no Antigravity section.
- The T3-owned Antigravity profile has no
antigravity-acp/acp_token.json. - The cached result is:
{ "windows": [], "unavailable": { "reason": "unsupported", "message": "Sign in with Google to see Antigravity limits." } }
Source-to-runtime evidence
Inspection of the installed resources/server.asar shows that makeAntigravityUsageProbe:
- Builds a fixed token path with
path.join(input.profileDirectory, "antigravity-acp", "acp_token.json"). - Returns the unavailable result above immediately when that file does not exist.
- Only performs OAuth refresh and Google quota requests after that check.
Thus this observed failure occurs before a quota HTTP request is attempted. The frontend excludes the provider from its limits grouping when there are no windows and the result is unavailable.
The executable resolver/spawn code already recognizes the CLI and launches it with ["acp"], so successful CLI execution does not imply compatibility with this separate legacy-file-based quota probe.
Environment
- T3 Code desktop Beta: installed executable ProductVersion
0.1.8.0. - Windows x64, OS version
10.0.26200.0. - Official Antigravity CLI:
1.5.2. - Authentication: personal Google account (
oauth-personal). - Custom CLI executable; no T3-managed standalone ACP installation.
Related reports and distinction
- feat(antigravity): support agy CLI as custom binaryPath #32503 added custom
agyexecutable support; the observed gap concerns the separate usage probe. - Discussion feat(antigravity): support native Go `agy acp` (antigravity-cli v1.4.12+) as first-class ACP runtime #28315 (converted from feat(antigravity): support native Go
agy acp(antigravity-cli v1.4.12+) as first-class ACP runtime #28313) documents the difference between CLI authentication storage and the legacy ACP token file. - [Bug]: Antigravity shows token usage only, not limits #16104 tracked the initial absence of subscription limits, before that feature shipped.
- [Bug]: Does not mark the remaining limits with Antigravity #20228 / [Bug]: Antigravity usage limits omit Gemini quotas when retrieveUserQuotaSummary returns only 3p buckets #27473 concern missing quota groups after credential loading and quota requests.
- Antigravity provider session fails to open with Argon 4 Medium after weekly quota reset #32856 also mentions empty limits with a custom CLI, but its main failure was session startup; the maintainer response points to permission-mode compatibility. Here a real turn succeeds.
Investigation boundaries
The exact Windows storage location/backend used by the CLI credentials was not established. No credentials were copied or modified. No claim is made that adapting credential retrieval alone guarantees complete quota groups for this account.
Prepared with Codex using local read-only inspection and a real T3/Antigravity connectivity test.
Activity
Pulsar-Programmer commentedon Nov 13, 2026
Additional reproduction: this now affects the T3-managed install on macOS too, not only a custom
agypath.Since #35409, T3 downloads the official CLI from the auto-updater (
manifests/darwin_arm64.json, currently 1.5.7) instead ofagy_acp_server.par. The usage probe (apps/server/src/provider/antigravityUsageLimits.ts) still only reads<profile>/antigravity-acp/acp_token.json, so on a default T3 Nightly macOS (arm64) install the limits never appear.What I verified
authMethodisoauth-personal, and turns run normally.acp_token.jsonis never created. The probe returnsunsupported/ "Sign in with Google to see Antigravity limits."AGY_ACP_FORCE_FILE_STORAGE=1, which T3 sets inantigravityEnvironment, is not read by the 1.5.7 binary.stringsoncli_mac_arm64.tar.gz→antigravitycontains neitherAGY_ACP_FORCE_FILE_STORAGEnoracp_token.json. The 1.4.5agy_acp_server.parcontains both. 1.5.7 does have aFileAuthStore, but according to its changelog it only falls back to file storage when the keyring is bypassed or unreachable (for example Linux without D-Bus).Implication
For the managed CLI on macOS (and likely Windows),
AGY_ACP_FORCE_FILE_STORAGEhas no effect, and the probe can never find credentials. Possible directions:agystores it (keyringAuth/codeassistclient.StoredToken).Environment: T3 Code Nightly (macOS arm64), managed Antigravity CLI 1.5.7,
oauth-personal.Posted by Claude Opus 5.5 (Claude Code) on behalf of @Pulsar-Programmer.
RealDishwash commentedon Nov 14, 2026
Another reproduction, on Linux with KDE Plasma (Wayland) and the T3-managed runtime, not a custom
agypath:0.1.10-nightly.20261113.4643(server reports the same version)1.5.9(just updated from 1.5.8, same result on both), Fedora, linux-x64auth.type: oauth-personal;authenticatesucceeds andsession/promptturns finish normally<stateDir>/providers/antigravity/<instanceHash>/antigravity-acp/has noacp_token.json. It contains onlysettings.json({"auth":{"type":"oauth-personal"}}),installation_id, logs, conversations, etc.Password for 'antigravity' on 'gemini', created at the moment of sign-in. So on Linux the runtime also ignoresAGY_ACP_FORCE_FILE_STORAGE=1and usesorg.freedesktop.secrets.usageLimitsis{"windows":[],"unavailable":{"reason":"unsupported","message":"Sign in with Google to see Antigravity limits."}}, so Usage → Limits shows only Codex and Claude.main@dafd053a:antigravityUsageLimits.tsstill only readsacp_token.json.Produced via
t3 triagewith Claude Code (Claude Opus 5.5).ZidanHadipratama commentedon Nov 14, 2026
Confirmed on Linux x64 with T3 Code 0.1.9, Antigravity CLI 1.5.9, and a Google account.
Before the fix, T3 reported an authenticated account and loaded seven models, but limits returned
unsupported. The quota reader required<profile>/antigravity-acp/acp_token.json, which was absent. It stopped before requesting quota data.I edited
apps/server/dist/runtimeLayer-BR0FRrjb.mjsinside the installed/opt/t3code-bin/resources/app.asar, then installed the modified archive. The changes are inmakeAntigravityUsageProbeand its Antigravity driver call site.The modified T3 server code automatically runs the configured CLI when checking quotas and converts the returned JSON to T3's existing format. Its CLI invocation is equivalent to:
In that file, I added
AGY_CLI_DISABLE_AUTO_UPDATE: "true"to the environment passed to the quota-check process. It is part of the installed application code and applies only to that process. No global shell setting is changed.CLI runtimes use this path even if a legacy token file exists. Failed CLI requests do not fall back to that file.
After restarting T3, its provider cache contains five quota windows, with no
unavailableerror:gemini-5hgemini-weekly3p-5h3p-weeklygemini-argon-wtu-weeklyVerification: 45 local checks passed using a recorded real CLI response and T3's quota decoder. Separate server tests also confirmed that an invalid legacy token does not override CLI quotas, and an invalid CLI response returns
probeFailed.These results come from server data, not a visual check of the main app. This is a local patch to the installed bundle, not a source PR. I have not tested #36733, macOS, Windows, or multiple accounts. The patch does not provide cross-environment account deduplication.
Sharing this on #34327 as evidence and an alternative to the keyring approach in #36733.
Implemented with GPT-6.1 Sol through Codex in T3 Code.
luciancsilva commentedon Nov 14, 2026
Another reproduction, Windows desktop app in WSL mode (
wslOnly, Ubuntu backend):0.1.10-nightly.20261114.4695(still reproduces on the latest nightly)agy1.5.8 (Linux, on PATH inside WSL),auth.type: oauth-personal, providerenabled/installed/ready/authenticatedcaches/antigravity.json→usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }<stateDir>/providers/antigravity/<hash>/antigravity-acp/containsantigravity-oauth-token({ token: { access_token, token_type, refresh_token, expiry, expires_in }, auth_method: "consumer", id_token_email }) but noacp_token.json. That token has noclient_id/client_secret, so it does not match theTokenFileschema the probe decodes.The probe path is not OS-specific (
join(profileDirectory, "antigravity-acp", "acp_token.json")), so running the server inside WSL vs. native Linux makes no difference. Same root cause as this issue (and the closed duplicates #36217 and #36630).neo-clon commentedon Nov 17, 2026
Another reproduction, on Linux (Fedora 44, kernel 7.2) with a headless T3 server (no
DISPLAY/Wayland), on the latest nightly:0.1.11-nightly.20261117.48141.5.10(antigravitybinary, release713ae840…);agy1.5.5 also on PATHauth.type: oauth-personal(Google sign-in)What I see:
AntigravityProvider.refreshUsagefinishes in ~0.004 ms, and the probe returnsunsupportedbecause<profile>/antigravity-acp/acp_token.jsondoes not exist.acp_token.jsoneven after a fresh sign-in. The runtime log reportsconsumerOAuth: authenticated successfullyandUsing file-based secret storage at ~/.config/antigravity/plugin-secrets.json(that path holds plugin secrets only), while~/.local/share/keyrings/login.keyring(GNOME Keyring) was modified at sign-in time. SoAGY_ACP_FORCE_FILE_STORAGE=1does not keep the OAuth token out of the keyring, matching the description in fix(server): Antigravity limits show for the 1.5.x CLI's keyring sign-in #36733.antigravityruntimes T3 has downloaded (2026-11-12 → 2026-11-16) contain the stringacp_token; every olderagy_acp_server.parrelease (2026-09-09 → 2026-11-02) does. An older profile signed in with the.parruntime still has anacp_token.json.Related, for headless servers: Settings → Sign in fails with
No browser is available here (no graphical display is available to open a browser). Run agy acp --login in a terminal on this machine…. The workaround that worked was running the login against the instance profile by hand:That restores the sign-in, but because the token lands in the keyring, Limits still stays empty. #36733 should cover this case.
casungo commentedon Nov 18, 2026
Note
🤖 GPT-6.1 Terra responding on behalf of @casungo
Reproduced with T3 Code server and Windows desktop client
0.1.11-nightly.20261117.4851, a headless Linux server, and the T3-managed Antigravity1.5.10runtime. Settings reports the Google account as authenticated, but Usage → Limits shows Codex and omits Antigravity. The Antigravity profiles have noantigravity-acp/acp_token.json, which this server build's quota probe expects.As a temporary way to inspect quotas outside T3, the managed CLI with the instance profile and
--print /usage --output-format jsonreturned Gemini, Claude/GPT and Gemini 4 Argon quota groups, with zero model tokens reported. I have not independently compared those percentages with another account display.sayid233 commentedon Nov 18, 2026
Another reproduction on the stable desktop build (not nightly), with the latest managed runtime:
0.1.10, macOS 27.2.1 arm641.5.11(~/.t3/tools/antigravity-acp/darwin-arm64)auth.type: oauth-personal, provider ready/authenticated, turns work normallycaches/antigravity.json→usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, so Antigravity is missing from Usage → LimitsSigning out and back in does not help. The runtime log after a fresh sign-in still shows
ChainedAuth: authenticated via keyring (effective: keyring). The credential goes to the macOS Keychain (servicegemini, accountantigravity, ago-keyringbase64 blob containing{token: {access_token, refresh_token, …}, auth_method: "consumer"}), and noacp_token.jsonis written. The1.5.11binary does not containAGY_ACP_FORCE_FILE_STORAGEoracp_token.json, so the env var T3 passes has no effect.I confirmed that the probe works once it has a credential. I took the refresh token from that Keychain item, paired it with the OAuth client embedded in the
1.5.11binary (only one of the three embedded client ID/secret pairs is accepted for this refresh token), and wrote{client_id, client_secret, refresh_token}to<profile>/antigravity-acp/acp_token.json. After a provider refresh, Usage → Limits showed the Gemini and Claude & GPT 5h/weekly windows fromretrieveUserQuotaSummaryon both endpoints. The rest ofmakeAntigravityUsageProbeworks as written. The only problem is where the credential comes from.Suggested fix: read the credential from the runtime's actual store (OS keyring / Secret Service, or
antigravity-oauth-tokenwhere it is file-backed), together with the client the runtime uses. Alternatively, use the runtime's own usage output (--print /usage --output-format json, as mentioned above) instead of requiring the legacyacp_token.json. A manually writtenacp_token.jsonalso goes stale on the next sign-in, so it is not a long-term workaround.Bitcoinlouie commentedon Nov 19, 2026
Reproduced on the latest nightly with the managed
1.5.12Antigravity runtime:0.1.11-nightly.20261118.4903(6927cfe2adb0), macOS 27.3 (26C5047e) arm641.5.12(~/.t3/tools/antigravity-acp/darwin-arm64,"harness": null)oauth-personal(cache/acp-auth-state.json), provider is ready/authenticated and turns work normally. Running/usageinagy(1.5.12) shows limits as expected.ChainedAuth: authenticated via keyring (effective: keyring); noantigravity-acp/acp_token.jsonis written (and the1.5.12binary does not referenceAGY_ACP_FORCE_FILE_STORAGEoracp_token.json).~/.t3/caches/antigravity.json):Looking forward to #36733 landing!
kimyc3825 commentedon Nov 19, 2026
Another reproduction on native Windows 11 (x64) with the stable desktop build and T3-managed Antigravity runtime:
T3 Code (Beta)desktop0.1.101.5.12(~/.t3/tools/antigravity-acp/win32-x64,agy.exe,"harness": null)oauth-personalsign-in succeeds, provider is ready/authenticated, and chat turns work normally.keyringAuth: loaded token ... expired=false/ChainedAuth: authenticated via keyring (effective: keyring)<stateDir>\providers\antigravity\<instanceHash>\antigravity-acp\acp_token.jsonis never created, and the managedagy.exe1.5.12binary does not referenceAGY_ACP_FORCE_FILE_STORAGEoracp_token.json."Sign in with Google to see Antigravity limits."Looking forward to #36733 landing with Windows Credential Manager support!
BrendanH18 commentedon Nov 19, 2026
Note
🤖 Claude Opus 5.5 (Claude Code) responding on behalf of Brendan
Same result on the stable desktop build with the 1.5.12 runtime: T3 Code (Beta) 0.1.10, macOS 27.2 arm64,
oauth-personal, chats work.ChainedAuth: authenticated via keyring (effective: keyring)antigravity-acp/acp_token.jsonin the instance profilecaches/antigravity.json→usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, so Antigravity is missing from Usage → LimitsOn a headless Linux host (no Secret Service), 1.5.12 falls back to file storage instead, but still not
acp_token.json, so limits are missing there too (see #36034).1007cordon-ux commentedon Nov 19, 2026
Stale legacy
acp_token.jsonmakes Usage → Limits show another account's/project's quota instead of "unavailable"Environment: T3 Code
0.1.11-nightly.20261119.4918, macOS 27.2.1 arm64. Antigravity provider was migrated from the T3-managed1.4.5ACP runtime to the officialagyCLI1.5.12(custom executable path),oauth-personal.After the migration the instance profile still contained the old
antigravity-acp/acp_token.json(mtime from before the managed runtime was removed). The ACP server log shows the CLI never uses it:authenticate:error getting token source: You are not logged into AntigravityACP authenticate: methodId="oauth-personal"keyring.go:64] keyringAuth: loaded token, expiry=... expired=falseSo auth comes from the macOS keyring, but the usage probe still finds the leftover file, refreshes its legacy
refresh_token, and queriesv1internal:retrieveUserQuotaSummarywith the legacyproject_id. Result: Usage → Limits shows plausible numbers from that old account/project (Gemini 5h ≈10% used, weekly ≈3%) while the account actually in use has exhausted its quota. Unlike the reports above, there is no "Sign in with Google to see Antigravity limits." state, so the stale data looks authoritative.Suggestion: when the provider runs the native CLI, ignore or clear a legacy
acp_token.json(or only trust one written after the CLI sign-in). #38957 / #36733 should make the probe read the keyring sign-in; until then the leftover file should at least not be surfaced as current limits. Related: #34389.(After moving the stale file out of the profile, the panel should fall back to the same "unavailable" state as the reports above.)
1007cordon-ux commentedon Nov 19, 2026
Follow-up: the stale-token variant is reproducible, and there is a workaround.
After migrating from the managed 1.4.5 runtime to the
agy1.5.12 CLI, the native profile still contained the legacyantigravity-acp/acp_token.json. The probe refreshed that legacy token and showed another account's quota (Gemini 5h ≈10% used, weekly ≈3%) while the account in use was at 0% remaining for both 5-hour windows.Workaround: temporarily run the Google-hosted 1.5.0 ACP server (
https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.5.0-darwin-arm64.zip, sha256c82ecb4ef476bfc35cbe5b2745cdddef873b99c9f5bd7fd11e5ca1fc1667a3fc, matching the ACP registry entry) withGEMINI_HOMEpointed at the native profile, completeauthenticate(oauth-personal) with the account in use, and let it write a freshacp_token.json. Then remove the 1.5.0 server; sessions keep using the 1.5.12 CLI. Usage → Limits then matchesagy -p "/usage"exactly, including thegemini-argon-*bucket.Caveat: that file token is a separate session from the CLI keyring login, so a later account switch in T3 goes stale again. #38957 / #36733 reading the keyring sign-in would make this file unnecessary.
fix(server): Antigravity CLI sign-ins show their usage limits
yu2001-s commentedon Nov 19, 2026
Still reproduces on macOS arm64 with the latest nightly and the newest managed runtime:
0.1.11-nightly.20261119.4928, T3-managed Antigravity runtime1.5.12ready,auth.type: oauth-personal,auth.status: authenticated; turns run normallycaches/antigravity.json→usageLimits: { windows: [], unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." } }<userdata>/providers/antigravity/<hash>/antigravity-acp/hassettings.json({"auth":{"type":"oauth-personal"}}) but neitheracp_token.jsonnorantigravity-oauth-token, so on macOS the credential lives only in the Keychain. Only the keyring read in fix(server): Antigravity limits read the 1.5.x CLI's stored sign-in #38957 (or fix(server): Antigravity limits show for the 1.5.x CLI's keyring sign-in #36733) would fix this case; theantigravity-oauth-tokenfile fallback alone would not.Posted by Claude Opus 5.5 (Claude Code) on behalf of the reporter.
albert2704 commentedon Nov 19, 2026
Confirming the same issue on macOS 27.0 (
arm64):0.1.10-nightly.20261116.47741.5.12(T3-managedantigravity-cli,antigravity acp --gemini-dir ... --app-data-dir antigravity-acp)caches/antigravity.json):status: "ready",auth: { status: "authenticated", type: "oauth-personal" }, turns complete normally.caches/antigravity.json):windows: [],unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }.<userdata>/providers/antigravity/<hash>/antigravity-acp/): containssettings.json(oauth-personal) and logs, with neitheracp_token.jsonnorantigravity-oauth-token(credentials stored in macOS Keychain).Looking forward to the Keychain read in #38957 / #36733.
TimeAndLocation commentedon Nov 19, 2026
Confirming this also reproduces on Windows x64 with the T3-managed
1.5.12runtime:0.1.11-nightly.20261119.4918(082bc2cb)win32 x64,10.0.26200)agy.exe1.5.12(harness: null), launched asagy.exe acp --gemini-dir <state-dir>\providers\antigravity\<hash> --app-data-dir antigravity-acpoauth-personal— provider is authenticated and completes turns normally, but Antigravity is completely absent from Usage → Limits (and shows no notice).Evidence:
<state-dir>\providers\antigravity\<hash>\antigravity-acp\acp_token.jsondoes not exist (onlycache\acp-auth-state.json,cache\onboarding.json,settings.json, etc.).antigravity-acp\log\acp-server-*.log) showsagy.exeauthenticating via the OS keyring rather than file storage:acp_token.json,makeAntigravityUsageProbe(apps/server/src/provider/antigravityUsageLimits.ts:220-246) returnsunavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, which bothcollectLimitAccountsandcollectLimitNoticesfilter out.Triaged by Antigravity (Gemini 4 Neon, High) via T3 Code.
DmitriyRud commentedon Nov 19, 2026
Same on stable T3 Code (Beta) 0.1.10, macOS 26.7.2 arm64, managed runtime 1.5.12:
ChainedAuth: authenticated via keyring, noacp_token.jsoneven after signing in through Settings → Antigravity, Limits shows "Sign in with Google to see Antigravity limits."A credential-free alternative to reading the keyring, in case it helps the fix: while Antigravity 2.0 or
agyruns, its hub (agy --hub) writes~/.gemini/antigravity/daemon/hub_<port>.json(csrfToken,httpPort,httpsPort,pid, mode 0600). Thenreturns
userStatus.cascadeModelConfigData.clientModelConfigs[].quotaInfo(remainingFraction,resetTime) per model. Models of one bucket share both values, so the three Google AI Pro buckets fall out directly: Gemini 5h (Neon / Hydrogen / Flash / Orchestrator (Neon)), Claude + GPT-OSS 5h, Argon weekly. Edge cases:quotaInfo: {}= unmetered (Gemini 4 Carbon);resetTimewithoutremainingFraction= exhausted (proto3 drops 0.0);resetTimein the past = already reset. The plain HTTP port answers, so no TLS bypass is needed; 401 without the CSRF header. It only works while a hub is running, so it would be a complement to the keyring fix in #36733 / #38957, not a replacement.juliusmarminge commentedon Nov 19, 2026
Reproduced on main @ 420d1b5 with agy 1.5.12 and a real Google sign-in: the CLI stores the sign-in as
antigravity-acp/antigravity-oauth-token, there is noacp_token.json, and Usage → Limits shows no Antigravity account. #38957 fixes it on the same profile; before/after proof is on the PR: #38957