You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(agent): Windows installer host detection works from Git Bash
The one-liner failed from Git Bash with "no cluster host detected": the installer read the host off the live ssh process's command line, which is unreadable when that ssh is Git's MSYS build. Accept it explicitly via $env:PLUG_HOST/PLUG_PORT (the native Windows OpenSSH client is still auto-detected). Also make Die actually stop the script — a piped `powershell -Command -` ignored the old exit, so plug.exe could fail yet the script ran on and copied wintun.dll — and rewrite the README Windows section assuming Git for Windows.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Die 'cannot download plug.exe: no cluster host detected (run from an `ssh ... get@<host> install-windows | powershell -` line)'
93
+
Die 'no cluster host detected. From Git Bash, pass it on the powershell side of the pipe: | PLUG_HOST=<host> PLUG_PORT=<port> powershell -NoProfile -Command - (the native Windows OpenSSH client is auto-detected without this)'
80
94
}
81
95
if (-not (Get-Command ssh -ErrorAction SilentlyContinue)) {
82
96
Die 'ssh.exe not found. Install the Windows OpenSSH client (Settings > Apps > Optional Features > OpenSSH Client), then re-run.'
0 commit comments