[BUG] Newly opened files force-open in a detached secondary window regardless of focus

Description When a file tab is dragged out of the main window to create a new separate window, all subsequently opened files are routed to this new secondary window as tabs. This occurs regardless of which window currently holds the focus.

Steps to Reproduce

  1. Open Antigravity and open any file.

  2. Drag the file’s tab outside the main window to detach it and create a secondary window.

  3. Place focus on the main window.

  4. Open a new file.

Expected Behavior The newly opened file should open as a tab in the currently active/focused window (the main window).

Actual Behavior The newly opened file consistently opens as a tab in the detached secondary window, ignoring the current window focus.

Environment

  • Antigravity Version: 1.19.6

  • VSCode OSS Version: 1.107.0 (user setup)

  • Commit: d2597a5c475647ed306b22de1e39853c7812d07d

  • Date: 2026-02-26T23:07:23.202Z

  • Electron: 39.2.3

  • Chromium: 142.0.7444.175

  • Node.js: 22.21.1

  • V8: 14.2.231.21-electron.0

  • OS: Windows_NT x64 10.0.26200

  • Language Server CL: 875890115

Hello,

Thank you for bringing these concerns to our attention. Please be assured that I have shared your feedback with our internal team for further review.
We appreciate your continued patience as we work to enhance the Antigravity experience.
Could you please update the latest version 1.20.6 and let us know if the issue still persists.