Repository navigation
Closed
Description
Plugin version
2.5.0 (15b29f6)
Area
Provider usage helper
Environment
- Dux Shell:
dms v2.1.0-268-g6a6c5f745 - Quickshell:
0.3.2 - Compositor:
Hyprland(Wayland) - Distro:
CachyOS - bash/jq/curl:
bash 5.3.20/jq 1.8.2/curl 8.23.0
Steps to reproduce
- Sign in with Antigravity ACP (e.g., via Zed's
antigravity-acpexternal agent), without installing the standalone Antigravity IDE oragyCLI. This writes the OAuth credentials to~/.gemini/antigravity-acp/acp_token.json. - Enable
antigravityinproviderSelection. - Run
./providers/get-antigravity-usageand./providers/get-provider-health antigravity.
Expected behavior
providers/native/antigravity.bashdiscovers~/.gemini/antigravity-acp/acp_token.json, refreshes the access token, and returns the account's quota windows.providers/get-provider-health antigravitydetects~/.gemini/antigravity-acp/acp_token.jsonasloginevidence (even whenrefresh_tokenis a top-level field rather than nested under.token.refresh_token).
Actual behavior
./providers/get-antigravity-usage returns:
[{"provider":"antigravity","source":"antigravity-local","error":{"code":2,"kind":"provider","message":"No usable Antigravity session was found. Open Antigravity and sign in, or install the agy CLI."}}]The Antigravity widget/dashboard card shows an error with no quota data.
Local checks
# Schema of ~/.gemini/antigravity-acp/acp_token.json (types only, no values):
$ jq 'with_entries(.value = (.value | type))' ~/.gemini/antigravity-acp/acp_token.json
{
"client_id": "string",
"client_secret": "string",
"refresh_token": "string",
"token_uri": "string",
"scopes": "array",
"project_id": "string"
}
# Before fix:
$ ./providers/get-antigravity-usage
[{"provider":"antigravity","source":"antigravity-local","error":{"code":2,"kind":"provider","message":"No usable Antigravity session was found. Open Antigravity and sign in, or install the agy CLI."}}]Root cause & suggested fix
providers/native/antigravity.bashonly searches IDEstate.vscdbdatabases, desktop keyring entries, andagyCLI token files (~/.gemini/antigravity-cli/antigravity-oauth-tokenand${XDG_CONFIG_HOME:-$HOME/.config}/antigravity-cli/antigravity-oauth-token). Adding${HOME}/.gemini/antigravity-acp/acp_token.jsonto that fallback list works directly becauseacp_token.jsonuses the same Google OAuth client (token_uri: https://oauth2.googleapis.com/token) andextract_antigravity_keyring_refreshalready supports top-level.refresh_token.has_antigravity_file_credentialsinproviders/get-provider-healthonly checks the twoantigravity-clipaths and only accepts.token.refresh_token. Extending it to check~/.gemini/antigravity-acp/acp_token.jsonand accept.refresh_token // .refreshToken // .token.refresh_token // .token.refreshTokenbrings health detection in line withextract_antigravity_keyring_refresh.
Tested locally with acp_token.json added to both files: ./providers/get-provider-health antigravity reports ready with login evidence ~/.gemini/antigravity-acp/acp_token.json, and ./providers/get-antigravity-usage successfully refreshes and returns the quota windows (Claude & OpenAI Models (5h) and Weekly).
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs(antigravity): document ACP discovery and client version override
bernardopg commentedon Nov 22, 2026
Thanks for the report, @SlobCoder. The diagnosis was spot on: you identified both exact points (adapter discovery and health readiness) and also confirmed that
extract_antigravity_keyring_refreshalready accepted top-levelrefresh_token.What was happening
The Antigravity native adapter only looked for file credentials in the
antigravity-clitoken paths, and the health check only acceptedtoken.refresh_tokenin those same files. ACP sessions stored at~/.gemini/antigravity-acp/acp_token.jsonwith a top-levelrefresh_tokenwere not discovered, so the provider appeared as having no usable session.Fix
I opened PR #138 with the fix:
~/.gemini/antigravity-acp/acp_token.jsonin the token-file fallback.refresh_token,refreshToken,token.refresh_token,token.refreshToken).tests/test-antigravity-live.shfor adapter discovery and health readiness with a top-level ACP token.Validation
I ran locally:
bash tests/test-antigravity-live.shbash -n providers/native/antigravity.bash providers/get-provider-healthshellcheck -S warning providers/native/antigravity.bash providers/get-provider-healthWhen PR #138 is merged and you update, could you confirm whether
get-provider-health antigravityreportsreadyandget-antigravity-usagereads the ACP session normally in your environment? If any case is still missing, please share the anonymized file shape and I’ll adjust it. Thanks again!