fix(antigravity): fix support for antigravity ide (v2)#508
Conversation
robinebers
left a comment
There was a problem hiding this comment.
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:
-
Update
docs/providers/antigravity.md— the "Local SQLite Database" section still lists only the old path:Path:
~/Library/Application Support/Antigravity/User/globalStorage/state.vscdbCould 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.
|
Hey @kvanzuijlen, I tested your PR and it works well — I've opened #509 which includes your changes plus two additions:
If you'd prefer to add these to your own branch instead, let me know. |
|
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. |
|
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. |
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
Testing
bun run buildand it succeededbun run testand all tests pass (verified withnpx vitest run)bun tauri devChecklist
mainbranchSummary 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.
Written for commit ff48f55. Summary will update on new commits. Review in cubic