Skip to content

fix(antigravity): fix support for antigravity ide (v2)#508

Open
kvanzuijlen wants to merge 3 commits into
robinebers:mainfrom
kvanzuijlen:fix/antigravity-ide-v2
Open

fix(antigravity): fix support for antigravity ide (v2)#508
kvanzuijlen wants to merge 3 commits into
robinebers:mainfrom
kvanzuijlen:fix/antigravity-ide-v2

Conversation

@kvanzuijlen
Copy link
Copy Markdown

@kvanzuijlen kvanzuijlen commented May 24, 2026

Description

This PR adds support for Antigravity IDE (the new name for what was previously known as Antigravity)

For backwards compatibility, it checks both the v2 (Antigravity IDE) and v1 (Antigravity) paths.

Note on Plugin Renaming & Standalone v2

Google made some changes to Antigravity. Antigravity now refers to a standalone, agent-first app, while Antigravity IDE is now what was previously known as Antigravity IDE. I think it might make sense to rename the plugin to Antigravity IDE. I decided to keep it out of scope for this PR, as I suppose renaming the plugin could break existing users' configuration.

The standalone app is no longer VSC based, and thus doesn't have a state.vscdb.

Related Issue

None.

Type of Change

  • Bug fix
  • New feature
  • New provider plugin
  • Documentation
  • Performance improvement
  • Other (describe below)

Testing

  • I ran bun run build and it succeeded
  • I ran bun run test and all tests pass (verified with npx vitest run)
  • I tested the change locally with bun tauri dev

Checklist

  • I read CONTRIBUTING.md
  • My PR targets the main branch
  • I did not introduce new dependencies without justification

Summary by cubic

Restore support for the renamed Antigravity IDE (v2) by reading OAuth tokens from the new state database and detecting the IDE process. Also updates the docs to show the v2 path and fallback order.

  • Bug Fixes
    • Read OAuth tokens from the v2 DB path at ~/Library/Application Support/Antigravity IDE/User/globalStorage/state.vscdb, with fallback to the v1 path.
    • Cascade to the v1 DB if the v2 DB is missing, corrupt, or has no token.
    • Update LS discovery to look for both "antigravity" and "antigravity-ide" markers.

Written for commit ff48f55. Summary will update on new commits. Review in cubic

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.

No issues found across 2 files

Re-trigger cubic

@robinebers robinebers mentioned this pull request May 25, 2026
12 tasks
Copy link
Copy Markdown
Owner

@robinebers robinebers left a comment

Choose a reason for hiding this comment

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

Hey! 👋 This is Rob's AI reviewer. Thanks for the fix — caught this on the daily grind too.

Clean approach overall. Trying the new Antigravity IDE path first, falling back to the old Antigravity path if it's missing or unreadable, plus accepting both LS markers — all sensible and minimally invasive. New test coverage for the three cases (v2 hits, v2 missing → v1, v2 corrupt → v1) is solid.

One small thing to fix before merge:

  1. Update docs/providers/antigravity.md — the "Local SQLite Database" section still lists only the old path:

    Path: ~/Library/Application Support/Antigravity/User/globalStorage/state.vscdb

    Could you add the v2 path and note the fallback order? Something like:

    Paths (tried in order):

    • ~/Library/Application Support/Antigravity IDE/User/globalStorage/state.vscdb (v2 — renamed app)
    • ~/Library/Application Support/Antigravity/User/globalStorage/state.vscdb (v1 — pre-rename, retained for backwards compat)

    Also, the Requires: line at the top of the page still says "Antigravity IDE running" which is fine, but mentioning that pre-rename installs of "Antigravity" also work would be helpful for users not yet on the v2 build.

Everything else (plugin.js, plugin.json, tests, marker logic) looks good. I tested it locally against my own Antigravity IDE install and the v2 path + OAuth refresh + Cloud Code flow works end-to-end.

@sakn0m
Copy link
Copy Markdown

sakn0m commented May 25, 2026

Hey @kvanzuijlen, I tested your PR and it works well — I've opened #509 which includes your changes plus two additions:

  1. A fix for language server discovery on v2.0.6 (the binary name changed from language_server_macos to just language_server)
  2. Segmented progress bars to match Antigravity's 5-step quota granularity

If you'd prefer to add these to your own branch instead, let me know.

@kvanzuijlen
Copy link
Copy Markdown
Author

Hi @sakn0m,

I think it makes sense to keep them separate. I'll add the changes requested by @robinebers. Your branch seems to contain some more changes (also to the UI) and changes to the process name, which I think the maintainers would like to test separately.

@github-actions github-actions Bot added the docs label May 25, 2026
@kvanzuijlen
Copy link
Copy Markdown
Author

Hi @robinebers,

Good catch on the docs. I also noticed the models are outdated in the docs, but haven't gotten to figuring out how I can find the internal IDs, so decided to keep it out of this PR for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants