[Antigravity / VS Extension] Port mismatch (hardcoded 4400 vs ephemeral port) and WebView2 ConnectionAborted

The Google Antigravity extension for Visual Studio fails to render responses and execute tool approvals due to a port handshake mismatch.

Environment:

  • Windows 11
  • Visual Studio 2026
  • agy.exe (CLI / Language Server)

Observed Behavior:

  1. The extension UI hardcodes attempts to connect to port 4400:
    [INFO] Attaching active workspaceUri to WebView URL: http://127.0.0.1:4400/?…
  2. The daemon spawns on ephemeral ports (e.g. 51584, 64768):
    [INFO] Launched CLI process on ephemeral port 51584.
  3. WebView2 navigation fails with ConnectionAborted.
  4. When accessed directly in a browser via the ephemeral port, tool approval buttons (Submit / Skip) remain completely unresponsive.