Skip to content

fix(antigravity): discover ACP token sessions - #138

Merged
bernardopg merged 6 commits into
mainfrom
fix/issue-132-antigravity-acp
Nov 22, 2026
Merged

bernardopg merged 6 commits into
mainfrom
fix/issue-132-antigravity-acp

Conversation

@bernardopg

Copy link
Copy Markdown
Owner

Summary

  • Discover Antigravity ACP token files at ~/.gemini/antigravity-acp/acp_token.json in the native adapter.
  • Teach the provider health check to recognize the ACP token file and accept top-level/nested refresh token shapes.
  • Add regression coverage for ACP file discovery and health readiness.

Root cause

Antigravity ACP clients (for example Zed's external agent) store OAuth credentials in ~/.gemini/antigravity-acp/acp_token.json with a top-level refresh_token. The adapter only searched IDE/CLI token locations and the health check only accepted nested token.refresh_token.

Test plan

  • bash tests/test-antigravity-live.sh
  • bash -n providers/native/antigravity.bash providers/get-provider-health
  • shellcheck -S warning providers/native/antigravity.bash providers/get-provider-health

Fixes #132

Antigravity ACP (used by Zed's external agent) stores OAuth credentials in ~/.gemini/antigravity-acp/acp_token.json with a top-level refresh_token. The native adapter and health check only looked at antigravity-cli token files and only accepted nested token.refresh_token.

Check the ACP token file in both places and accept the same refresh_token shapes the keyring extractor already supports.

Fixes #132

Signed-off-by: Bernardo Pinto Gomes <[email protected]>
@github-actions github-actions Bot added documentation Improvements or additions to documentation area:providers Provider adapters (providers/) area:ci CI, workflows, tooling labels Nov 22, 2026
Signed-off-by: Bernardo Pinto Gomes <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Bernardo Pinto Gomes <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Bernardo Pinto Gomes <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Bernardo Pinto Gomes <[email protected]>

# Conflicts:
#	CHANGELOG.md
@bernardopg
bernardopg merged commit 5cfd079 into main Nov 22, 2026
20 checks passed
@bernardopg
bernardopg deleted the fix/issue-132-antigravity-acp branch November 22, 2026 05:30
@bernardopg bernardopg mentioned this pull request Nov 22, 2026
4 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, workflows, tooling area:providers Provider adapters (providers/) documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Antigravity adapter and health check do not discover ACP sessions (~/.gemini/antigravity-acp/acp_token.json)

1 participant