Is there an existing issue for this bug?
Required Troubleshooting Steps
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I COULD successfully SSH to the remote machine with the generated SSH command
Remote-SSH Log
Remote-SSH Log
[21:02:46.687] VS Code version: 1.122.0-insider
[21:02:46.687] Remote-SSH version: [email protected]
[21:02:46.688] darwin arm64
[21:02:46.771] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/bf/k4yjzypn7n56b_zmb872vddh0000gn/T/vscode-ssh-askpass-420670381789beafab13184221ca980df9919745.sock",...}
[21:02:46.836] stderr> local-server-1> listen EINVAL: invalid argument /var/folders/bf/k4yjzypn7n56b_zmb872vddh0000gn/T/vscode-ssh-askpass-420670381789beafab13184221ca980df9919745.sock
[21:02:46.953] stderr> Authenticated to 192.168.2.103 ([192.168.2.103]:22) using "publickey".
[21:02:47.275] Server delay-shutdown request failed: connect EINVAL /var/folders/bf/k4yjzypn7n56b_zmb872vddh0000gn/T/vscode-ssh-askpass-420670381789beafab13184221ca980df9919745.sock - Local (undefined:undefined)
[21:02:51.838] Exec server for ... closed (gracefully)
[21:02:51.839] > local-server-1> Timed out
[21:02:51.842] SSH Resolver called for ... attempt 2, (Reconnection)
[21:02:56.943] Exec server for ... closed (gracefully)
[21:02:56.943] > local-server-2> Timed out
[21:02:56.946] SSH Resolver called for ... attempt 3, (Reconnection)
... (infinite loop)
Expected Behavior
Remote SSH connects and stays connected without reconnect loop.
Actual Behavior
Remote SSH enters an infinite reconnect loop. The local server fails
to bind its IPC socket (EINVAL) because the generated path is 114 chars,
exceeding macOS's 103-char limit for sockaddr_un.sun_path. The connection
attempts every ~5 seconds indefinitely and never succeeds.
Steps To Reproduce
- macOS with default TMPDIR (e.g. /var/folders/bf/k4yjzypn7n56b_zmb872vddh0000gn/T/ — 49 chars)
- VS Code Insiders build da03e4ef ([email protected])
- Connect to any Remote-SSH host
- Observe infinite reconnect loop in Remote-SSH log:
- "listen EINVAL: invalid argument .../vscode-ssh-askpass-{40hex}.sock"
- "Server delay-shutdown request failed: connect EINVAL ..."
- "local-server-N> Timed out"
- "SSH Resolver called ... attempt N+1 (Reconnection)"
Bisect: build 7090241a (previous) works — no delay-shutdown socket, no EINVAL.
Regression introduced in da03e4ef.
Anything else?
No response
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServersetting[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I COULD successfully SSH to the remote machine with the generated SSH command
Remote-SSH Log
Remote-SSH Log
Expected Behavior
Remote SSH connects and stays connected without reconnect loop.
Actual Behavior
Remote SSH enters an infinite reconnect loop. The local server fails
to bind its IPC socket (EINVAL) because the generated path is 114 chars,
exceeding macOS's 103-char limit for sockaddr_un.sun_path. The connection
attempts every ~5 seconds indefinitely and never succeeds.
Steps To Reproduce
Bisect: build 7090241a (previous) works — no delay-shutdown socket, no EINVAL.
Regression introduced in da03e4ef.
Anything else?
No response