Skip to content

Add Antigravity CLI fallback to Antigravity provider#513

Open
rohithgoud30 wants to merge 1 commit into
robinebers:mainfrom
rohithgoud30:feat/antigravity-cli-fallback
Open

Add Antigravity CLI fallback to Antigravity provider#513
rohithgoud30 wants to merge 1 commit into
robinebers:mainfrom
rohithgoud30:feat/antigravity-cli-fallback

Conversation

@rohithgoud30
Copy link
Copy Markdown

@rohithgoud30 rohithgoud30 commented May 27, 2026

Summary

  • add Antigravity CLI (agy) as a fallback inside the existing antigravity provider instead of introducing a separate provider
  • keep the probe order aligned with the review feedback from Add Antigravity CLI provider #477: local language server first, app SQLite/OAuth Cloud Code fallback second, CLI keychain/Cloud Code fallback last
  • try Antigravity IDE SQLite credentials before legacy Antigravity credentials, and try all app SQLite token candidates so stale credentials in one DB do not hide valid credentials in another
  • support account-scoped keychain reads with host.keychain.readGenericPassword(service, account?)
  • document the IDE/App/CLI data sources and why Antigravity should not show guessed Claude/Codex-style token/cost history

Closes #475.

Why

#477 added an antigravity-cli provider, but the review feedback was to consolidate this into one Antigravity provider because the IDE, app, and CLI share the same quota pools. Gemini stays unchanged for now.

This keeps the UI simple: one Antigravity entry, same existing quota rows, more fallback paths when the standalone app or CLI is the only authenticated source.

Notes

I kept plugins/antigravity/plugin.json unchanged, so this does not add new links, rows, or visual layout changes. The provider still shows quota only; local Antigravity transcripts/logs do not expose reliable token/cost accounting.

Manual verification with only the standalone /Applications/Antigravity.app installed returned:

Plan: Google AI Pro
Gemini Pro: 0% used
Gemini Flash: 0% used
Claude: 0% used

Validation

  • git diff --check
  • bun run build
  • CI=1 bun run test (1118 tests passed)
  • cargo test --manifest-path src-tauri/Cargo.toml keychain
  • cargo test --manifest-path src-tauri/Cargo.toml redact_log_message_redacts_account_and_paths

@github-actions github-actions Bot added rust Pull requests that update rust code plugin docs labels May 27, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread plugins/antigravity/plugin.js Outdated
@rohithgoud30 rohithgoud30 force-pushed the feat/antigravity-cli-fallback branch from 7d69414 to 2e4bb8e Compare May 27, 2026 00:59
@rohithgoud30 rohithgoud30 force-pushed the feat/antigravity-cli-fallback branch from 2e4bb8e to b6dc757 Compare May 27, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs plugin rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Antigravity CLI plugin support (Google IO 2026)

1 participant