Remote-SSH fails to connect to Windows Remote Host (Hardcoded bash script expects Unix environment)

Description
When attempting to connect to a Windows machine via the Remote-SSH extension in Google Antigravity, the connection fails during the server installation phase. Upstream VS Code supports Windows as a remote host, but Antigravity currently does not seem to support it.

Root Cause Analysis
Based on the SSH output logs, the authentication is successful, but the Antigravity server installation script is hardcoded to expect a Unix-like environment. It forcibly sends a bash -s command and uses a shell script that checks uname -s.

When connecting to a Windows host (where OpenSSH might fall back to MSYS/Git Bash or PowerShell), the script throws a platform unsupported error and exits.

Expected Behavior
Antigravity should support Windows Remote Hosts just like the standard VS Code Remote-SSH extension (which detects the Windows platform and uses PowerShell for the server installation).

Error Logs Snippet
Here is the exact output from my Antigravity logs showing the successful authentication followed immediately by the hardcoded script failure:

2026-03-18 11:33:25.107 [info] [Trace - 03:33:25.107] [stderr] Authenticated to 192.168.17.146 ([192.168.17.146]:22) using “password”.

2026-03-18 11:33:25.216 [info] [Trace - 03:33:25.216] [stderr] debug1: Sending command: bash -s
2026-03-18 11:33:25.216 [info] [Trace - 03:33:25.216] [stderr] debug1: pledge: network
2026-03-18 11:33:29.839 [info] [Trace - 03:33:29.838] Error platform not supported: MSYS_NT-10.0-26200
2026-03-18 11:33:29.839 [info] [Trace - 03:33:29.839] Error: installation failed.
2026-03-18 11:33:29.839 [info] [Trace - 03:33:29.839] 5226fdb317bff96d03721e7f: start
2026-03-18 11:33:29.839 [info] [Trace - 03:33:29.839] exitCode==1==
2026-03-18 11:33:29.839 [info] [Error - 03:33:29.839] An error occurred while starting the server, with exit code: 1

2026-03-18 11:33:29.854 [info] [Error - 03:33:29.854] SSH server closed unexpectedly.

And the script logic causing the issue seems to be:

KERNEL=“$(uname -s)”
case $KERNEL in
Darwin) PLATFORM=“darwin” ;;
Linux) PLATFORM=“linux” ;;
*) echo “Error platform not supported: $KERNEL”; exit 1 ;;

Environment

  • Local OS: Windows 11
  • Remote OS: Windows 11 (with OpenSSH Server)
  • Connection Method: Remote-SSH (Password Authentication)
  • IDE: Google Antigravity

Please consider adding support for Windows remote hosts in future releases. Thank you!