Repository navigation
Description
Does this issue occur when all extensions are disabled?: Not tested. Remote-SSH is required to reproduce the connection scenario.
- VS Code Version: 1.145.1
- VS Code Commit: 6bab64e
- Remote-SSH Version: 0.128.0
- Client OS: macOS, Tahoe26.6.2 (25G83)
- Remote OS: Windows x64, version 10.0.26300
- Latest Insiders: Not tested
Steps to Reproduce:
- Connect from macOS to a Windows host using Remote-SSH, with
remote.SSH.useExecServerenabled. - Wait until the remote workspace opens, then fully quit VS Code with Cmd+Q.
- Reopen VS Code and reconnect to the same Windows host.
- Observe that opening the remote workspace takes approximately five minutes, even though SSH authentication and the Exec Server connection succeed within a few seconds.
Expected behavior:
The remote workspace should open promptly. If the Agent Host Supervisor cannot become ready, it should not block ordinary remote editing for 300 seconds.
Actual behavior:
The remote CLI tries to start the Agent Host Supervisor and waits for 300 seconds. After the timeout, it proceeds to start VS Code Server, and the workspace opens successfully.
Disconnecting via “Close Remote Connection” and reconnecting without fully quitting VS Code is fast in my tests. Fully quitting and reopening VS Code reproduces the delay.
Relevant settings:
{
"remote.SSH.useLocalServer": true,
"remote.SSH.useExecServer": true,
"remote.SSH.localServerDownload": "auto"
}Remote-SSH output:
[19:10:23.830] VS Code version: 1.145.1
[19:10:23.840] remote.SSH.useLocalServer = true
[19:10:23.840] remote.SSH.useExecServer = true
[19:15:28.323] [server] Checking .../log.txt and .../pid.txt for a running server...
[19:15:28.325] [server] Installing and setting up Visual Studio Code Server...
[19:15:28.327] [server] Server setup complete
[19:15:28.328] [server] Starting server...
[19:15:28.450] [server] Server started
The corresponding remote CLI log, captured from the temporary file referenced by the “Starting cli” command, shows the exact delay:
[2026-11-06 11:10:29] info Disposed of connection to running server.
[2026-11-06 11:10:29] info No agent host supervisor running; starting one in the background
[2026-11-06 11:15:29] warn Agent host supervisor unavailable; renderer will not see agentHostProxy: could not start server on the given host/port: timed out after 300s waiting for agent host supervisor
[2026-11-06 11:15:29] info Checking .../log.txt and .../pid.txt for a running server...
[2026-11-06 11:15:29] warn Agent host supervisor unavailable; renderer will not see agentHostProxy: could not start server on the given host/port: timed out after 300s waiting for agent host supervisor
[2026-11-06 11:15:29] info Starting server...
[2026-11-06 11:15:29] info Server started
The CLI log timestamps are eight hours behind the client log timestamps; these excerpts correspond to the same connection attempt.
Additional observations:
- The problem also occurs when opening an empty folder.
- Connecting from the same Mac to another Linux host does not exhibit this delay.
- Opening VS Code locally on the Windows host works normally.
- The supervisor timeout is confirmed, but the underlying reason why the supervisor fails to become ready is still unknown.
Could the supervisor startup be made non-blocking for ordinary Remote-SSH workspace connections, or could a shorter/configurable timeout or an explicit opt-out be provided?
Activity
nwpuMrBean commentedon Nov 7, 2026
I also found the reason why Agent Host Supervisor was unavailable in agent-host-stable.log:
nwpuMrBean commentedon Nov 7, 2026
Update: The problem is not reliably reproducible.
On a recent attempt with VS Code 1.145.2, the supervisor initially logged an error while checking for the latest server version, but it eventually logged
Server ready. The remote workspace connected after the VS Code Server download completed. On earlier attempts, however, the CLI did logtimed out after 300s waiting for agent host supervisorbefore continuing to start the server.The main concern remains: when the supervisor cannot become ready, ordinary Remote-SSH workspace startup can be blocked for 300 seconds. I also cannot find a dedicated way to disable supervisor provisioning while keeping
remote.SSH.useExecServerenabled. Could supervisor startup be made non-blocking, or could there be a shorter timeout or an explicit opt-out?nwpuMrBean commentedon Nov 11, 2026
Another observation from my November 11 reproduction: my macOS VS Code client is still 1.145.2, and the Windows host already has its matching VS Code Server (
Stable-c4453f8…). A later reconnect confirmed that this editor server was still running.However, the Agent Host Supervisor independently resolved the latest Stable version as 1.145.3 (
dcd3ad6…) and started downloading anotherserver-win32-x64package.As I understand it, these are versioned installations of the same VS Code Server package: one matching the editor client and another selected as the latest Stable version for the supervisor. This means a new Stable release can trigger a large additional download—and a 300-second delay—even when the client's matching editor server is already installed and usable. Could Remote-SSH start the existing editor server without waiting for the supervisor's separate download?
nwpuMrBean commentedon Nov 11, 2026
Follow-up: I opened #347561 to describe the separate behavior where Remote-SSH prepares a channel-latest Agent Host Server before reusing an already installed, client-matching editor server.
This issue focuses on the 300-second wait when the Supervisor cannot become ready. Regardless of why its download stalls or fails, the existing editor server starts successfully after the timeout. Could ordinary Remote-SSH editing proceed without waiting those five minutes? Please treat #347561 as related; it describes the eager download, while this issue tracks the blocking wait.
cli: do not start an agent host supervisor for command-shell
agentHost: address review of shared agent host discovery (#347743)
agentHost: address review of shared agent host discovery (#347743)
agentHost: address review of shared agent host discovery (#347743)