Repository navigation
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
#10168 reports the same symptom (open since 2024, no cause identified). This report adds a minimal repro in a clean profile and what the logs show. #11805 and #11926 are related: the reconnect loop gives up on an error it does not recognise, but their triggers are different.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting (both reproduce) - My issue was not covered in the Tips and Tricks
- I will include a complete copy of my Remote - SSH logs
[Optional] Diagnose with Copilot
No, I did not ask @remote-ssh.
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
Not applicable: the connection itself works. The window connects normally and breaks only when it switches from a folder to a workspace.
Environment
- VS Code 1.145.0 (
a717861c07586a53d83b80d742cd3f59b20a6273), Windows 11 Pro 10.0.26200 x64 - Remote-SSH 0.128.0,
remote.SSH.useExecServer: true,OpenSSH_for_Windows_9.5p2 - Remote: Ubuntu 26.04.1 LTS x86_64, on the same LAN
- Clean profile:
- new
--user-data-dir,--extensions-dirand--shared-data-dir - only Remote - SSH, Remote - SSH: Editing Configuration Files and Remote Explorer installed
- settings:
remote.SSH.serverInstallPath(a temporary path),remote.SSH.remotePlatform,security.workspace.trust.enabled: false
- new
It also happens in my normal profile, with Workspace Trust on.
Steps To Reproduce
- Open a folder on an SSH host and wait until the window is connected:
code --remote ssh-remote+linux-host /tmp/repro/A - Add another folder from the same host: File > Add Folder to Workspace…, then pick
/tmp/repro/B.code --remote ssh-remote+linux-host --add /tmp/repro/Bdoes the same.
It reproduced in all 3 runs: remote.SSH.useLocalServer at its default (false), set to false, and set to true.
Expected Behavior
The window becomes an untitled multi-root workspace with both folders and stays connected.
Actual Behavior
The window hangs for about 20 seconds, then shows "Cannot reconnect. Please reload the window." It is then "Untitled (Workspace)" but disconnected.
What the logs show
- Adding a folder to a single-folder window switches it to a workspace in place, which stops the extension hosts. The local one exits at once (
11:19:34.718 Extension host terminating: received terminate message from renderer). - Remote-SSH had resolved the window's connection as a managed one (
resolveAuthority(ssh-remote) returned 'Managed(1)'), and that connection is carried by Remote-SSH in the local extension host. From the moment that host exits, the management connection receives nothing. - Reading the new workspace's configuration over that connection waits until the socket timeout 20 s later:
received socket timeout event (reason: unacknowledgedMessage, unacknowledgedMsgCount: 2, timeSinceOldestUnacknowledgedMsg: 20004, …). - The reconnect then runs while no extension host is up, so no resolver is registered.
resolveAuthority(ssh-remote)fails after 0 ms withCannot resolve authority, and the loop treats this as permanent: "An unknown error occurred while trying to reconnect, since this is an unknown case, it will be treated as a permanent error! Will give up now!" The new local extension host starts about 1.5 s later (11:19:56.392), too late. - The server still had the connection and would have waited for it:
[ManagementConnection] The client has disconnected, will wait for reconnection 3h before disposing...
So the switch to a workspace stops the very extension host that carries the remote connection, and the reconnect gives up before that host is back. Two possible fixes:
- Keep the extension host that resolves a managed connection running across this switch, or restart it first.
- Retry a
Cannot resolve authoritythat comes while extension hosts are restarting, instead of treating it as permanent.
Workaround
Open the folders as a saved workspace first: create a .code-workspace file on the host and use File > Open Workspace from File…. Adding folders to a workspace that is already open only updates that file and does not restart the extension hosts, so the window stays connected. I verified this in the same clean profile.
Remote-SSH Log
Remote - SSH log, first connection (useLocalServer default)
[11:18:56.240] Log Level: 2
[11:18:56.247] SSH Resolver called for "ssh-remote+linux-host", attempt 1
[11:18:56.251] remote.SSH.useLocalServer = false
[11:18:56.252] remote.SSH.useExecServer = true
[11:18:56.252] remote.SSH.bindHost = {}
[11:18:56.252] remote.SSH.showLoginTerminal = false
[11:18:56.252] remote.SSH.remotePlatform = {"linux-host":"linux"}
[11:18:56.252] remote.SSH.path =
[11:18:56.252] remote.SSH.configFile =
[11:18:56.252] remote.SSH.useFlock = true
[11:18:56.252] remote.SSH.lockfilesInTmp = false
[11:18:56.252] remote.SSH.localServerDownload = auto
[11:18:56.252] remote.SSH.remoteServerListenOnSocket = false
[11:18:56.254] remote.SSH.defaultExtensions = []
[11:18:56.254] remote.SSH.defaultExtensionsIfInstalledLocally = []
[11:18:56.254] remote.SSH.loglevel = 2
[11:18:56.254] remote.SSH.enableDynamicForwarding = true
[11:18:56.254] remote.SSH.enableRemoteCommand = false
[11:18:56.254] remote.SSH.serverPickPortsFromRange = {}
[11:18:56.254] remote.SSH.serverInstallPath = {"linux-host":"/tmp/vscode-repro"}
[11:18:56.254] remote.SSH.permitPtyAllocation = false
[11:18:56.254] remote.SSH.preferredLocalPortRange = undefined
[11:18:56.254] remote.SSH.useCurlAndWgetConfigurationFiles = false
[11:18:56.254] remote.SSH.experimental.chat = true
[11:18:56.254] remote.SSH.experimental.enhancedSessionLogs = true
[11:18:56.254] remote.SSH.httpProxy = {"*":""}
[11:18:56.254] remote.SSH.httpsProxy = {"*":""}
[11:18:56.292] VS Code version: 1.145.0
[11:18:56.292] Remote-SSH version: remote-ssh@0.128.0
[11:18:56.292] win32 x64
[11:18:56.297] SSH Resolver called for host: linux-host
[11:18:56.297] Setting up SSH remote "linux-host"
[11:18:56.306] Using commit id "a717861c07586a53d83b80d742cd3f59b20a6273" and quality "stable" for server
[11:18:56.306] Extensions to install:
[11:18:56.326] Install and start server if needed
[11:18:56.331] Checking ssh with "C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe -V"
[11:18:56.334] Got error from ssh: spawn C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe ENOENT
[11:18:56.334] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[11:18:56.335] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[11:18:56.335] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[11:18:56.336] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[11:18:56.336] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[11:18:56.337] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[11:18:56.337] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[11:18:56.338] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[11:18:56.339] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[11:18:56.378] > OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2
[11:18:56.385] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 63902 "linux-host" sh
[11:18:56.386] Generated SSH command: 'type "C:\Users\user\AppData\Local\Temp\vscode-linux-multi-line-command-linux-host-167962562.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 63902 "linux-host" sh'
[11:18:56.387] Using connect timeout of 17 seconds
[11:18:56.388] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[11:18:56.875] >
[11:18:56.876] Got some output, clearing connection timeout
[11:18:56.893] >
[11:18:57.230] > 1ddd27538483: running
> Script executing under PID: 63770
[11:18:57.260] > Installing to /tmp/vscode-repro/.vscode-server...
> 1ddd27538483%%1%%
> Downloading with wget
[11:18:57.267] > wget is from busybox: no
> Program 'wget' appears to support flag '--no-config'
[11:18:58.151] > Download complete
[11:18:58.187] > 1ddd27538483%%2%%
> tar --version: tar (GNU tar) 1.35
> Copyright (C) 2023 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
[11:18:58.386] > code 1.145.0 (commit a717861c07586a53d83b80d742cd3f59b20a6273)
> Starting VS Code CLI...
> Spawned remote CLI: 63820
[11:18:58.404] > Waiting for server log...
[11:18:58.437] > 1ddd27538483: start
> listeningOn==127.0.0.1:36817==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==897==
> installTime==200==
> serverStartTime==49==
> execServerToken==11a1aa1a-a11a-1111-aa1a-1aa1a1111aa1==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK====
> DISPLAY====
> 1ddd27538483: end
[11:18:58.437] Received install output:
listeningOn==127.0.0.1:36817==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==897==
installTime==200==
serverStartTime==49==
execServerToken==11a1aa1a-a11a-1111-aa1a-1aa1a1111aa1==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
[11:18:58.438] Remote server is listening on port 36817
[11:18:58.438] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":36817},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"11a1aa1a-a11a-1111-aa1a-1aa1a1111aa1"},"downloadTime":897,"installTime":200,"serverStartTime":49,"installUnpackCode":"success"}
[11:18:58.441] Starting forwarding server. local port 63920 -> socksPort 63902 -> remotePort 36817
[11:18:58.442] Forwarding server listening on port 63920
[11:18:58.443] Waiting for ssh tunnel to be ready
[11:18:58.445] [Forwarding server port 63920] Got connection 0
[11:18:58.448] Tunneled port 36817 to local port 63920
[11:18:58.448] Resolved "ssh-remote+linux-host" to "port 63920"
[11:18:58.452] Initizing new exec server for ssh-remote+linux-host
[11:18:58.452] Resolving exec server at port 63920
[11:18:58.454] [Forwarding server port 63920] Got connection 1
[11:18:58.523] Exec server for ssh-remote+linux-host created and cached
[11:18:58.523] Extensions to install:
[11:18:58.527] ------
[11:18:58.528] No hints found in the recent session.
[11:18:58.555] [server] Checking /tmp/vscode-repro/.vscode-server/cli/servers/Stable-a717861c07586a53d83b80d742cd3f59b20a6273/log.txt and /tmp/vscode-repro/.vscode-server/cli/servers/Stable-a717861c07586a53d83b80d742cd3f59b20a6273/pid.txt for a running server...
[11:18:58.759] [server] Installing and setting up Visual Studio Code Server...
[11:18:58.989] [server] Downloading Visual Studio Code server -> /tmp/.tmpCaFzKR/vscode-server-linux-x64.tar.gz
[11:18:58.989] [server] server download progress: 0/228544749 (0%)
[11:18:59.138] [server] server download progress: 2105334/228544749 (1%)
[11:18:59.215] [server] server download progress: 4207309/228544749 (2%)
[11:18:59.308] [server] server download progress: 6306241/228544749 (3%)
[11:18:59.371] [server] server download progress: 8403827/228544749 (4%)
[11:18:59.464] [server] server download progress: 10508394/228544749 (5%)
[11:18:59.544] [server] server download progress: 12612633/228544749 (6%)
[11:18:59.619] [server] server download progress: 14712476/228544749 (6%)
[11:18:59.687] [server] server download progress: 16815702/228544749 (7%)
[11:18:59.765] [server] server download progress: 18915328/228544749 (8%)
[11:18:59.839] [server] server download progress: 21020672/228544749 (9%)
[11:18:59.922] [server] server download progress: 23125175/228544749 (10%)
[11:18:59.998] [server] server download progress: 25222528/228544749 (11%)
[11:19:00.086] [server] server download progress: 27320344/228544749 (12%)
[11:19:00.150] [server] server download progress: 29417862/228544749 (13%)
[11:19:00.219] [server] server download progress: 31515338/228544749 (14%)
[11:19:00.280] [server] server download progress: 33614006/228544749 (15%)
[11:19:00.332] [server] server download progress: 35714020/228544749 (16%)
[11:19:00.416] [server] server download progress: 37814628/228544749 (17%)
[11:19:00.494] [server] server download progress: 39912744/228544749 (17%)
[11:19:00.629] [server] server download progress: 42017440/228544749 (18%)
[11:19:00.754] [server] server download progress: 44116222/228544749 (19%)
[11:19:00.804] [server] server download progress: 46217786/228544749 (20%)
[11:19:00.863] [server] server download progress: 48317735/228544749 (21%)
[11:19:01.016] [server] server download progress: 50419308/228544749 (22%)
[11:19:01.046] [server] server download progress: 52519640/228544749 (23%)
[11:19:01.075] [server] server download progress: 54618652/228544749 (24%)
[11:19:01.207] [server] server download progress: 56719025/228544749 (25%)
[11:19:01.315] [server] server download progress: 58823412/228544749 (26%)
[11:19:01.428] [server] server download progress: 60923638/228544749 (27%)
[11:19:01.527] [server] server download progress: 63021754/228544749 (28%)
[11:19:01.619] [server] server download progress: 65125208/228544749 (28%)
[11:19:01.718] [server] server download progress: 67229298/228544749 (29%)
[11:19:01.793] [server] server download progress: 69329910/228544749 (30%)
[11:19:01.874] [server] server download progress: 71431482/228544749 (31%)
[11:19:01.961] [server] server download progress: 73529871/228544749 (32%)
[11:19:02.069] [server] server download progress: 75628008/228544749 (33%)
[11:19:02.134] [server] server download progress: 77732764/228544749 (34%)
[11:19:02.208] [server] server download progress: 79830254/228544749 (35%)
[11:19:02.297] [server] server download progress: 81933716/228544749 (36%)
[11:19:02.378] [server] server download progress: 84033082/228544749 (37%)
[11:19:02.454] [server] server download progress: 86130492/228544749 (38%)
[11:19:02.532] [server] server download progress: 88233902/228544749 (39%)
[11:19:02.606] [server] server download progress: 90337111/228544749 (40%)
[11:19:02.713] [server] server download progress: 92440546/228544749 (40%)
[11:19:02.795] [server] server download progress: 94541821/228544749 (41%)
[11:19:02.847] [server] server download progress: 96640764/228544749 (42%)
[11:19:02.916] [server] server download progress: 98743686/228544749 (43%)
[11:19:02.976] [server] server download progress: 100843928/228544749 (44%)
[11:19:03.050] [server] server download progress: 102947148/228544749 (45%)
[11:19:03.177] [server] server download progress: 105049974/228544749 (46%)
[11:19:03.257] [server] server download progress: 107153974/228544749 (47%)
[11:19:03.419] [server] server download progress: 109253206/228544749 (48%)
[11:19:03.535] [server] server download progress: 111358146/228544749 (49%)
[11:19:03.584] [server] server download progress: 113457058/228544749 (50%)
[11:19:03.637] [server] server download progress: 115554656/228544749 (51%)
[11:19:03.813] [server] server download progress: 117658531/228544749 (51%)
[11:19:03.859] [server] server download progress: 119757129/228544749 (52%)
[11:19:03.926] [server] server download progress: 121854834/228544749 (53%)
[11:19:04.027] [server] server download progress: 123955868/228544749 (54%)
[11:19:04.076] [server] server download progress: 126057269/228544749 (55%)
[11:19:04.123] [server] server download progress: 128158357/228544749 (56%)
[11:19:04.172] [server] server download progress: 130261811/228544749 (57%)
[11:19:04.235] [server] server download progress: 132363288/228544749 (58%)
[11:19:04.288] [server] server download progress: 134466750/228544749 (59%)
[11:19:04.341] [server] server download progress: 136566108/228544749 (60%)
[11:19:04.417] [server] server download progress: 138669789/228544749 (61%)
[11:19:04.507] [server] server download progress: 140770810/228544749 (62%)
[11:19:04.601] [server] server download progress: 142874264/228544749 (63%)
[11:19:04.657] [server] server download progress: 144972761/228544749 (63%)
[11:19:04.839] [server] server download progress: 147077126/228544749 (64%)
[11:19:04.977] [server] server download progress: 149181898/228544749 (65%)
[11:19:05.099] [server] server download progress: 151281462/228544749 (66%)
[11:19:05.307] [server] server download progress: 153386600/228544749 (67%)
[11:19:05.415] [server] server download progress: 155490626/228544749 (68%)
[11:19:05.596] [server] server download progress: 157595398/228544749 (69%)
[11:19:05.654] [server] server download progress: 159700384/228544749 (70%)
[11:19:05.705] [server] server download progress: 161804663/228544749 (71%)
[11:19:05.841] [server] server download progress: 163904134/228544749 (72%)
[11:19:05.871] [server] server download progress: 166006906/228544749 (73%)
[11:19:05.912] [server] server download progress: 168106264/228544749 (74%)
[11:19:05.990] [server] server download progress: 170209718/228544749 (74%)
[11:19:06.178] [server] server download progress: 172309084/228544749 (75%)
[11:19:06.290] [server] server download progress: 174413540/228544749 (76%)
[11:19:06.355] [server] server download progress: 176517352/228544749 (77%)
[11:19:06.460] [server] server download progress: 178615034/228544749 (78%)
[11:19:06.509] [server] server download progress: 180714400/228544749 (79%)
[11:19:06.571] [server] server download progress: 182811876/228544749 (80%)
[11:19:06.690] [server] server download progress: 184915338/228544749 (81%)
[11:19:06.894] [server] server download progress: 187013152/228544749 (82%)
[11:19:07.049] [server] server download progress: 189117536/228544749 (83%)
[11:19:07.139] [server] server download progress: 191216902/228544749 (84%)
[11:19:07.244] [server] server download progress: 193320356/228544749 (85%)
[11:19:07.364] [server] server download progress: 195424446/228544749 (86%)
[11:19:07.518] [server] server download progress: 197524912/228544749 (86%)
[11:19:07.583] [server] server download progress: 199628366/228544749 (87%)
[11:19:07.629] [server] server download progress: 201732968/228544749 (88%)
[11:19:07.674] [server] server download progress: 203831644/228544749 (89%)
[11:19:07.724] [server] server download progress: 205929486/228544749 (90%)
[11:19:07.793] [server] server download progress: 208033512/228544749 (91%)
[11:19:07.858] [server] server download progress: 210132870/228544749 (92%)
[11:19:07.950] [server] server download progress: 212238068/228544749 (93%)
[11:19:08.076] [server] server download progress: 214335332/228544749 (94%)
[11:19:08.190] [server] server download progress: 216436792/228544749 (95%)
[11:19:08.240] [server] server download progress: 218536979/228544749 (96%)
[11:19:08.285] [server] server download progress: 220641494/228544749 (97%)
[11:19:08.342] [server] server download progress: 222745772/228544749 (97%)
[11:19:08.393] [server] server download progress: 224845096/228544749 (98%)
[11:19:08.450] [server] server download progress: 226947444/228544749 (99%)
[11:19:08.572] [server] server download progress: 228544749/228544749 (100%)
[11:19:11.098] [server] server inflate progress: 222/4436 (5%)
[11:19:11.112] [server] server inflate progress: 445/4436 (10%)
[11:19:11.243] [server] server inflate progress: 668/4436 (15%)
[11:19:11.273] [server] server inflate progress: 891/4436 (20%)
[11:19:11.299] [server] server inflate progress: 1114/4436 (25%)
[11:19:11.313] [server] server inflate progress: 1337/4436 (30%)
[11:19:12.149] [server] server inflate progress: 1560/4436 (35%)
[11:19:12.165] [server] server inflate progress: 1783/4436 (40%)
[11:19:12.179] [server] server inflate progress: 2006/4436 (45%)
[11:19:12.221] [server] server inflate progress: 2229/4436 (50%)
[11:19:12.236] [server] server inflate progress: 2452/4436 (55%)
[11:19:12.249] [server] server inflate progress: 2675/4436 (60%)
[11:19:12.263] [server] server inflate progress: 2898/4436 (65%)
[11:19:12.274] [server] server inflate progress: 3121/4436 (70%)
[11:19:12.951] [server] server inflate progress: 3344/4436 (75%)
[11:19:13.158] [server] server inflate progress: 3567/4436 (80%)
[11:19:13.221] [server] server inflate progress: 3790/4436 (85%)
[11:19:13.303] [server] server inflate progress: 4013/4436 (90%)
[11:19:13.542] [server] server inflate progress: 4236/4436 (95%)
[11:19:14.111] [server] server inflate progress: 4436/4436 (100%)
[11:19:14.518] [server] Server integrity verified, version: 1.145.0 / a717861c07586a53d83b80d742cd3f59b20a6273 / x64 /
[11:19:14.566] [server] Server setup complete
[11:19:14.567] [server] Starting server...
[11:19:14.567] [server] Starting server process: "/tmp/vscode-repro/.vscode-server/cli/servers/Stable-a717861c07586a53d83b80d742cd3f59b20a6273/server/bin/code-server"
[11:19:14.688] [server] *
[11:19:14.689] [server] * Visual Studio Code Server
[11:19:14.689] [server] *
[11:19:14.689] [server] * By using the software, you agree to
[11:19:14.689] [server] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[11:19:14.689] [server] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[11:19:14.690] [server] Server bound to /tmp/code-c772a041-1d98-4fee-8d8d-01071fc4ea5a
[11:19:14.690] [server] Extension host agent listening on /tmp/code-c772a041-1d98-4fee-8d8d-01071fc4ea5a
[11:19:14.690] [server] parsed location: "/tmp/code-c772a041-1d98-4fee-8d8d-01071fc4ea5a"
[11:19:14.690] [server]
[11:19:14.691] [server] Server started
[11:19:14.771] [server] [11:19:14]
[11:19:14.811] [server]
[11:19:14.811] [server]
[11:19:14.811] [server]
[11:19:14.817] [server] [reconnection-grace-time] No CLI argument provided, using default: 10800000ms (10800s)
[11:19:14.818] [server] [11:19:14] [AgentHostChannel] Registered IPC channel 'agentHostProxy' (upstream: 127.0.0.1:36635)
[11:19:14.821] [server] [11:19:14] Extension host agent started.
[11:19:14.857] [server] [11:19:14] Started initializing default profile extensions in extensions installation folder. file:///tmp/vscode-repro/.vscode-server/extensions
[11:19:14.865] [server] [11:19:14] [<unknown>][d6283044][ExtensionHostConnection] New connection established.
[11:19:14.865] [server] [11:19:14] [<unknown>][d6283044][ExtensionHostConnection] Starting extension host process...
[11:19:14.906] [server] [11:19:14] [<unknown>][385789bd][ManagementConnection] New connection established.
[11:19:14.941] [server] [11:19:14] Completed initializing default profile extensions in extensions installation folder. file:///tmp/vscode-repro/.vscode-server/extensions
[11:19:15.049] [server] [11:19:14] [AgentHostChannel] Renderer ctx=[object Object] requested connect to upstream
[11:19:15.086] [server] [11:19:14] [AgentHostChannel] Opening upstream to 127.0.0.1:36635
[11:19:15.086] [server] [11:19:14] [<unknown>][d6283044][ExtensionHostConnection] <63968> Launched Extension Host Process.
[11:19:15.094] [server] (node:63873) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
[11:19:15.134] [server] (Use `node --trace-deprecation ...` to show where the warning was created)
[11:19:15.357] [server] [11:19:14] [<unknown>][d6283044][ExtensionHostConnection] <63968> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)
[11:19:15.357] [server]
Remote - SSH log, the new local extension host after the switch
[11:19:56.572] Log Level: 2
[11:19:56.578] SSH Resolver called for "ssh-remote+linux-host", attempt 1
[11:19:56.584] remote.SSH.useLocalServer = false
[11:19:56.585] remote.SSH.useExecServer = true
[11:19:56.585] remote.SSH.bindHost = {}
[11:19:56.585] remote.SSH.showLoginTerminal = false
[11:19:56.585] remote.SSH.remotePlatform = {"linux-host":"linux"}
[11:19:56.585] remote.SSH.path =
[11:19:56.586] remote.SSH.configFile =
[11:19:56.586] remote.SSH.useFlock = true
[11:19:56.586] remote.SSH.lockfilesInTmp = false
[11:19:56.586] remote.SSH.localServerDownload = auto
[11:19:56.586] remote.SSH.remoteServerListenOnSocket = false
[11:19:56.587] remote.SSH.defaultExtensions = []
[11:19:56.587] remote.SSH.defaultExtensionsIfInstalledLocally = []
[11:19:56.588] remote.SSH.loglevel = 2
[11:19:56.588] remote.SSH.enableDynamicForwarding = true
[11:19:56.588] remote.SSH.enableRemoteCommand = false
[11:19:56.588] remote.SSH.serverPickPortsFromRange = {}
[11:19:56.589] remote.SSH.serverInstallPath = {"linux-host":"/tmp/vscode-repro"}
[11:19:56.589] remote.SSH.permitPtyAllocation = false
[11:19:56.589] remote.SSH.preferredLocalPortRange = undefined
[11:19:56.589] remote.SSH.useCurlAndWgetConfigurationFiles = false
[11:19:56.589] remote.SSH.experimental.chat = true
[11:19:56.589] remote.SSH.experimental.enhancedSessionLogs = true
[11:19:56.589] remote.SSH.httpProxy = {"*":""}
[11:19:56.589] remote.SSH.httpsProxy = {"*":""}
[11:19:56.597] VS Code version: 1.145.0
[11:19:56.597] Remote-SSH version: remote-ssh@0.128.0
[11:19:56.598] win32 x64
[11:19:56.603] SSH Resolver called for host: linux-host
[11:19:56.603] Setting up SSH remote "linux-host"
[11:19:56.612] Using commit id "a717861c07586a53d83b80d742cd3f59b20a6273" and quality "stable" for server
[11:19:56.612] Extensions to install:
[11:19:56.621] Install and start server if needed
[11:19:56.625] Checking ssh with "C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe -V"
[11:19:56.628] Got error from ssh: spawn C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe ENOENT
[11:19:56.628] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[11:19:56.629] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[11:19:56.630] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[11:19:56.631] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[11:19:56.632] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[11:19:56.633] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[11:19:56.633] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[11:19:56.635] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[11:19:56.635] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[11:19:56.673] > OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2
[11:19:56.677] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 65433 "linux-host" sh
[11:19:56.679] Generated SSH command: 'type "C:\Users\user\AppData\Local\Temp\vscode-linux-multi-line-command-linux-host-539681504.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 65433 "linux-host" sh'
[11:19:56.679] Using connect timeout of 17 seconds
[11:19:56.680] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[11:19:56.900] >
[11:19:56.901] Got some output, clearing connection timeout
[11:19:56.915] >
[11:19:57.404] > 3a77996d9e94: running
> Script executing under PID: 64099
[11:19:57.417] > Found existing installation at /tmp/vscode-repro/.vscode-server...
> Starting VS Code CLI...
> Removing old logfile at /tmp/vscode-repro/.vscode-server/.cli.a717861c07586a53d83b80d742cd3f59b20a6273.log
[11:19:57.429] > Spawned remote CLI: 64117
> Waiting for server log...
[11:19:57.487] > 3a77996d9e94: start
> listeningOn==127.0.0.1:45663==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==52==
> execServerToken==a1a11111-1aaa-1a1a-aaa1-1aaa11a111a1==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK====
> DISPLAY====
> 3a77996d9e94: end
[11:19:57.488] Received install output:
listeningOn==127.0.0.1:45663==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==52==
execServerToken==a1a11111-1aaa-1a1a-aaa1-1aaa11a111a1==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
[11:19:57.488] Remote server is listening on port 45663
[11:19:57.488] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":45663},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"a1a11111-1aaa-1a1a-aaa1-1aaa11a111a1"},"serverStartTime":52,"installUnpackCode":""}
[11:19:57.492] Starting forwarding server. local port 65440 -> socksPort 65433 -> remotePort 45663
[11:19:57.492] Forwarding server listening on port 65440
[11:19:57.493] Waiting for ssh tunnel to be ready
[11:19:57.495] [Forwarding server port 65440] Got connection 0
[11:19:57.497] Tunneled port 45663 to local port 65440
[11:19:57.497] Resolved "ssh-remote+linux-host" to "port 65440"
[11:19:57.502] Initizing new exec server for ssh-remote+linux-host
[11:19:57.502] Resolving exec server at port 65440
[11:19:57.503] [Forwarding server port 65440] Got connection 1
[11:19:57.574] Exec server for ssh-remote+linux-host created and cached
[11:19:57.574] Extensions to install:
[11:19:57.577] ------
[11:19:57.578] No hints found in the recent session.
[11:19:57.601] [server] Checking /tmp/vscode-repro/.vscode-server/cli/servers/Stable-a717861c07586a53d83b80d742cd3f59b20a6273/log.txt and /tmp/vscode-repro/.vscode-server/cli/servers/Stable-a717861c07586a53d83b80d742cd3f59b20a6273/pid.txt for a running server...
[11:19:57.642] [server] Found running server (pid=63869)
Anything else?
Window log (renderer.log), relevant lines, same run
2026-11-04 11:18:53.920 [info] Started local extension host with pid 27540.
2026-11-04 11:18:54.854 [info] Invoking resolveAuthority(ssh-remote)...
2026-11-04 11:18:58.545 [info] resolveAuthority(ssh-remote) returned 'Managed(1)' after 3691 ms
2026-11-04 11:19:14.828 [info] Creating a socket (renderer-ExtensionHost-d6283044-1f2f-43bd-8987-2171cf655058) was successful after 16282 ms.
2026-11-04 11:19:14.838 [info] Creating a socket (renderer-Management-385789bd-df6e-40b6-9f06-b5cd3ac1c4fb) was successful after 16284 ms.
2026-11-04 11:19:54.831 [info] [remote-connection][Management ][38578…][reconnect] received socket timeout event (reason: unacknowledgedMessage, unacknowledgedMsgCount: 2, timeSinceOldestUnacknowledgedMsg: 20004, timeSinceLastReceivedSomeData: 23315).
2026-11-04 11:19:54.832 [info] [remote-connection][Management ][38578…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
2026-11-04 11:19:54.833 [info] [remote-connection][Management ][38578…][reconnect] starting reconnection with grace time: 10800000ms (10800s)
2026-11-04 11:19:54.834 [info] [remote-connection][Management ][38578…][reconnect] resolving connection...
2026-11-04 11:19:54.834 [info] Invoking resolveAuthority(ssh-remote)...
2026-11-04 11:19:54.834 [error] resolveAuthority(ssh-remote) returned an error after 0 ms Cannot resolve authority
2026-11-04 11:19:54.835 [error] [remote-connection][Management ][38578…][reconnect] An unknown error occurred while trying to reconnect, since this is an unknown case, it will be treated as a permanent error! Will give up now! Error:
2026-11-04 11:19:54.835 [error] Error: Cannot resolve authority
2026-11-04 11:19:55.065 [info] ChatSessionStore: Workspace transition from 52c767db0088b3293db295ec00e46ea9 to 3a83d88d83cbd3f2657f2a2e19a80fb7
2026-11-04 11:19:55.125 [error] [lifecycle]: Error during will-shutdown phase in default joiners (error: Canceled)
2026-11-04 11:19:55.871 [info] Started local extension host with pid 38140.
2026-11-04 11:19:55.943 [info] Invoking resolveAuthority(ssh-remote)...
2026-11-04 11:19:57.591 [info] resolveAuthority(ssh-remote) returned 'Managed(1)' after 1647 ms
2026-11-04 11:19:57.652 [info] Creating a socket (renderer-ExtensionHost-bc4fb696-637e-4bb3-b3e3-2b8d8bec8409) was successful after 61 ms.
2026-11-04 11:19:57.658 [info] Creating a socket (renderer-Management-baba79f6-ded1-4374-b118-6841bf758fd0) was successful after 67 ms.
Local extension host log (exthost.log), same run
2026-11-04 11:18:54.921 [info] Extension host with pid 27540 started
2026-11-04 11:19:34.718 [info] Extension host terminating: received terminate message from renderer
2026-11-04 11:19:34.722 [info] Extension host with pid 27540 exiting with code 0
2026-11-04 11:19:56.392 [info] Extension host with pid 38140 started
Server log (remoteagent.log), run with useLocalServer: true; the local extension host stopped at 11:31:08, the window gave up at 11:31:28
11:31:01.797 [info] [<unknown>][17ac9b65][ManagementConnection] New connection established.
11:31:01.800 [info] [<unknown>][7ad75805][ExtensionHostConnection] New connection established.
11:31:01.801 [info] [<unknown>][7ad75805][ExtensionHostConnection] Starting extension host process...
11:31:02.025 [info] [<unknown>][7ad75805][ExtensionHostConnection] <66417> Launched Extension Host Process.
11:31:07.891 [info] [<unknown>][7ad75805][ExtensionHostConnection] <66417> Extension Host Process exited with code: 0, signal: null.
11:31:30.723 [info] [<unknown>][175e77bf][ExtensionHostConnection] New connection established.
11:31:30.739 [info] [<unknown>][e9a9a11c][ManagementConnection] New connection established.
11:31:37.876 [info] [<unknown>][17ac9b65][ManagementConnection] The client has disconnected, will wait for reconnection 3h before disposing...
Activity