Skip to content

fix(antigravity): align switch targets with installed products - #2031

Open
andrew05060414 wants to merge 2 commits into
jlcodes99:mainfrom
andrew05060414:fix/antigravity-runtime-switch
Open

fix(antigravity): align switch targets with installed products#2031
andrew05060414 wants to merge 2 commits into
jlcodes99:mainfrom
andrew05060414:fix/antigravity-runtime-switch

Conversation

@andrew05060414

Copy link
Copy Markdown
Contributor

Summary

  • Fix dashboard Antigravity icons/labels to follow the active runtime target instead of always showing Antigravity IDE
  • Route auto-switch through installed products (desktop Antigravity when IDE is absent)
  • Add configurable multi-surface account sync:
    • active_only (default): switch only the currently selected Antigravity product tab
    • all_targets: sync all enabled surfaces on manual switch
    • Targets: desktop | ide | cli (empty = auto-detect installed products)
  • CLI target writes gemini:antigravity system credentials (shared with desktop Antigravity 2.x on Windows)

Context

Fixes scenarios like #931 where users run Antigravity desktop without Antigravity IDE installed, but Cockpit defaulted to IDE paths/icons. Upstream previously merged then reverted Antigravity CLI switching (#1801); this PR keeps CLI as credential-only sync without reintroducing the reverted macOS-only flow.

Follow-up (not in this PR)

  • Native Antigravity relay for agy using existing cockpit-cliproxy Antigravity executor (similar to Codex Local Access)
  • Seamless in-app switching remains IDE-extension only; desktop still requires credential-only or restart depending on settings

Test plan

  • Windows: only Antigravity desktop installed → dashboard shows desktop icon; auto-switch updates desktop account
  • Quick settings → set sync mode to all_targets, enable desktop + CLI → manual switch updates credential without IDE restart
  • IDE installed + dual no-restart enabled → IDE surface still uses seamless path when selected

Route auto-switch and optional all-target manual sync to desktop, IDE, and CLI surfaces. Fix dashboard icons to follow runtime target. Add quick settings for sync scope and per-product targets.
When antigravity_switch_targets is empty, auto-switch now routes to the preferred runtime only instead of restarting both desktop and IDE. Manual all-target sync still detects all installed products.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant