Skip to content

fix(sessions): Open brings Antigravity forward - #8

Merged
MF-DEEV merged 2 commits into
mainfrom
feat/claude-sessions
Oct 23, 2026
Merged

MF-DEEV merged 2 commits into
mainfrom
feat/claude-sessions

Conversation

@MF-DEEV

@MF-DEEV MF-DEEV commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Open on a session's page in the island did nothing visible for a session running in Antigravity while another app (Chrome, say) was in front.

Why

Open asks Antigravity's command line for the session's folder. With another app in front, Antigravity only reorders its own windows and stays behind, yet the command still exits 0. The command counted as success, so the app was never activated. It only worked when Antigravity was already in front. Came in with 19fcd0a.

Fix

  • 41b253e. Antigravity is activated first; the command line then picks the window holding the session's folder.
  • 5b039b3. The window lookup by title (any window whose title contains the folder's name) runs only when there is no folder for the command line to ask for. Running it before every Open could raise and unminimize the wrong window for a moment.

Testing

  • ./build.sh --dev --test: all 114,413 checks pass.
  • Reproduced from the shell: antigravity-ide <folder> with Antigravity in front switches the window; with Chrome in front, Chrome stays in front and only Antigravity's window order changes.
  • End to end with the Developer build, clicking on the island with Chrome in front: Open on a meettime session brings Antigravity forward on the meettime window, both when that window was already Antigravity's front window and when another one was.
  • Not tested: a minimized window, a window on another Space. A window holding its folder through a multi-root workspace may still get a new window from the command line; that path predates this change and is untouched.

…sion's window

Asked from its command line while another app is in front, Antigravity only reorders its own windows and stays behind, yet the command still succeeds, so Open never activated the app. The app now comes forward first and the command line then picks the window.
…command line cannot

The title lookup matches any window whose title contains the folder's name, so running it before every Open could raise and unminimize a stranger for a moment. The command line already picks the right window whenever the session's folder is open.
@MF-DEEV
MF-DEEV marked this pull request as ready for review October 23, 2026 15:57
@MF-DEEV
MF-DEEV merged commit 472ec4f into main Oct 23, 2026
0 of 2 checks passed
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