Antigravity Bugs:[Windows] run_command attaches child processes to an isolated Windows Desktop (HDESK) even when Permission Preset is set to Turbo (Sandbox Disabled), breaking Chrome single-instance handoff (playwright-cli) and GUI tools

Environment

  • OS: Windows 10 (Interactive User Session, SessionId=1)
  • Permission Preset: Turbo (configured in both Settings > General > Global Permissions and Settings > Projects)
  • Shell: PowerShell

Summary

According to the Antigravity documentation ( Terminal sandbox | Google Antigravity Docs ), setting Permission Preset to Turbo disables the Terminal Sandbox and runs commands unrestricted.

However, on Windows, even with Turbo enabled globally and per-project, processes spawned by the agent’s terminal execution tool (run_command) are still assigned to a non-default / hidden Windows Desktop (HDESK != WinSta0\Default). This breaks standard Windows desktop IPC mechanisms (FindWindowEx across top-level/message windows) and any developer tool or skill that displays UI on the interactive desktop.

Reproduction & Concrete Impact

1. playwright-cli attach --extension fails to hand off URLs to running Chrome

  • Steps:
    1. Have Chrome running on the interactive desktop (WinSta0\Default) with the Playwright Extension installed and PLAYWRIGHT_MCP_EXTENSION_TOKEN configured.
    2. Have the agent run playwright-cli attach --extension=antigravity via run_command.
  • Actual Result: Timed out after 30s with: Error: Playwright extension did not connect within 30s after opening the connect page. Make sure the extension is installed in the Chrome profile "Default" and PLAYWRIGHT_MCP_EXTENSION_TOKEN matches its token.
  • Root Cause: playwright-cli starts a local WebSocket relay and spawns chrome.exe --profile-directory=Default "chrome-extension://.../connect.html?...". On Windows, Chromium’s ProcessSingleton locates the existing Chrome process by calling FindWindowEx(HWND_MESSAGE, NULL, "Chrome_WidgetWin_0", userDataDir). Because FindWindowEx only searches windows within the calling thread’s HDESK, the chrome.exe spawned inside Antigravity’s isolated HDESK cannot see the Chrome_WidgetWin_0 message window on WinSta0\Default. It attempts to cold-start a second Chrome instance using the same profile directory, hits the profile lock held by the interactive Chrome, and exits immediately without opening the tab.

2. Local human-in-the-loop / notification GUI tools are invisible

  • Steps: Run a PowerShell script from an agent skill that plays TTS audio and opens a topmost WinForms/WPF window to alert the user.
  • Actual Result: Audio plays through the speakers (because Windows Audio Sessions are scoped to SessionId=1), but the popup window is created on the hidden HDESK and is completely invisible on the user’s screen (WinSta0\Default).

Expected Behavior

When Permission Preset is set to Turbo (or any non-sandboxed preset):

  1. run_command on Windows should spawn child processes on the interactive desktop (WinSta0\Default) rather than an isolated HDESK (just like Claude Code and Codex CLI).
  2. If the host only intends to prevent console windows from flashing, it should use standard ConPTY / CREATE_NO_WINDOW on WinSta0\Default rather than isolating HDESK, or provide an explicit toggle in Settings to run terminal commands on the default interactive desktop.

Hi @septemberlemon,

Could you please share the Antigravity version you are using?