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:
- Have Chrome running on the interactive desktop (
WinSta0\Default) with the Playwright Extension installed andPLAYWRIGHT_MCP_EXTENSION_TOKENconfigured. - Have the agent run
playwright-cli attach --extension=antigravityviarun_command.
- Have Chrome running on the interactive desktop (
- 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-clistarts a local WebSocket relay and spawnschrome.exe --profile-directory=Default "chrome-extension://.../connect.html?...". On Windows, Chromium’sProcessSingletonlocates the existing Chrome process by callingFindWindowEx(HWND_MESSAGE, NULL, "Chrome_WidgetWin_0", userDataDir). BecauseFindWindowExonly searches windows within the calling thread’sHDESK, thechrome.exespawned inside Antigravity’s isolatedHDESKcannot see theChrome_WidgetWin_0message window onWinSta0\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 hiddenHDESKand is completely invisible on the user’s screen (WinSta0\Default).
Expected Behavior
When Permission Preset is set to Turbo (or any non-sandboxed preset):
run_commandon Windows should spawn child processes on the interactive desktop (WinSta0\Default) rather than an isolatedHDESK(just like Claude Code and Codex CLI).- If the host only intends to prevent console windows from flashing, it should use standard ConPTY /
CREATE_NO_WINDOWonWinSta0\Defaultrather than isolatingHDESK, or provide an explicit toggle in Settings to run terminal commands on the default interactive desktop.