VS Code Remote WSL workspace disconnects when opening folder
13 posts since Dec 2024, all from GitHub.
“Does this issue occur when all extensions are disabled?: No. It needs a remote whose resolver supplies a per connection environment (Dev Containers here); the defect is in core, see "Cause". VS Code Version: 1.147.0 (8a14f0cc1b08d531eb83255ea3764ae22aa932b5); the code involved…”
“Environment Kilo Desktop 0.1.13, Windows 11 Pro (10.0.26300), WSL2 (Ubuntu) Workspace opened via UNC path: \wsl.localhost\Ubuntu 26.04\home\user\project Problem 1: file watching never works on WSL paths Adding a WSL folder as a workspace results in an endless watcher failure…”
“Does this issue occur when all extensions are disabled?: Yes. This occurs in the core Agent Host session lifecycle. It was reproduced in automated eval containers using the eval driver extension. VS Code Version: Insiders commits 5a36a9c68ce6 (2026 08 10) and 22231c1c3817 (2026…”
Users report that Version 1.107 of VS Code breaks remote WSL workspaces by disconnecting when a workspace is opened. The issue does not affect SSH tunnels or terminal access, only the folder-opening workflow.
SOURCES (13)
“Does this issue occur when all extensions are disabled?: No. It needs a remote whose resolver supplies a per connection environment (Dev Containers here); the defect is in core, see "Cause". VS Code Version: 1.147.0 (8a14f0cc1b08d531eb83255ea3764ae22aa932b5); the code involved is unchanged on main (00b906dd) OS…”
“Testing 349553 In this example I terminated wsl. It seems odd that the status of that environment is Available , yet when you hover over connect it clearly shows it's not running. Should the status be offline? In this state it also makes sense to offer restart distribution directly in the more menu rather than digging into troubleshoot connection. <img width="2129" height="119" alt="image" src="https://github.com/user attachments/assets/2c17ec8c b40d 444f 9143 4dbb6e226a2f" / <img width="691" he”
“Version: 1.147.0 insider (user setup) Commit: 95906867e0763b595ee0c8814ba93fea96798d3e Date: 2026 11 16T04:29:26Z Electron: 43.8.9 ElectronBuildId: 16012121 Chromium: 150.0.7871.250 Node.js: 24.22.1 V8: 15.0.245.31 electron.0 @github/copilot: 1.0.111 0 @github/copilot sdk: 1.0.33 preview.0 OS: Windows NT x64 10.0.19045 Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Logs: Steps to Reproduce: 1. Have the agent do some work which it decides to make a 'session file' instead of placing the documen”
“Environment Kilo Desktop 0.1.13, Windows 11 Pro (10.0.26300), WSL2 (Ubuntu) Workspace opened via UNC path: \wsl.localhost\Ubuntu 26.04\home\user\project Problem 1: file watching never works on WSL paths Adding a WSL folder as a workspace results in an endless watcher failure loop ( every 6 seconds, forever) in logs/main.log : This burns CPU continuously and makes the UI sluggish. Root cause is the 9P filesystem backing \wsl.localhost — Windows ReadDirectoryChangesW change notifications are not a”
“Summary After updating VS Code Insiders from 429a4ec to ff00e78 , every existing Remote Agent Host session on my SSH host disappeared from the session list. Nothing was deleted. The agent host now starts with a different user data directory, so it opens an empty session index. Environment Client: macOS, VS Code Insiders ff00e788322523ee1e9e8ee2c9bb4b89af93a3c2 Last good: 429a4ec703266abbd31f6886764e4127955bdc9d Remote: Linux arm64 over SSH (Remote Agent Host via code insiders agent host ) Root c”
“Environment Remote host: Microsoft Dev Box, Windows Client: macOS VS Code Connection: code tunnel Remote VS Code before update: 1.140.0 Remote VS Code after update: 1.141.0 Summary After updating VS Code on a remote Windows Dev Box, existing Agent Host sessions can no longer be opened. New sessions work correctly, and the Dev Tunnel remains connected. Attempting to open an existing session reports: Provider copilotcli is not ready to open copilotcli:/session id; it may still be starting, so try”
“Testing 336716 When opening agents window from editor window with a dev container on WSL it doesn't correctly select the workspace. Thisalso leads to the files list not correctly showing https://github.com/user attachments/assets/3157bd4e 72a9 4349 bbed ec0c003421a2”
“Does this issue occur when all extensions are disabled?: Yes. This occurs in the core Agent Host session lifecycle. It was reproduced in automated eval containers using the eval driver extension. VS Code Version: Insiders commits 5a36a9c68ce6 (2026 08 10) and 22231c1c3817 (2026 08 11). It was not observed on 8eaafbf4220a (2026 08 07). OS Version: Linux x64, containerized Feature: Agents window, Agent Host / Copilot CLI provider, new session flow Summary A new Agent Host chat can get stuck on Wor”
Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.128.0 OS Version: macOS Tahoe The Agents window cannot open a Remote SSH workspace on a host that presents…
“Version 1.107 introduced a disconnection error when selecting a WSL workspace in a remote host. I'm able to connect to the remote via SSH and then connect to WSL. The terminal works as expected and I can confirm I'm in WSL on the remote. However, once I try opening a workspace the connection disconnects and hangs. I rolled back to 1.106 and everything works as expected. Remote tunnels work correctly on 1.107, so it's somewhat odd that SSH WSL Open Folder doesn't work. I know this is a somewhat v”
“Type: <b Bug</b Open VSCode in WSL and have some files open, workspace or not does not seem to make a difference simulate WSL crashing taskkill /f /IM wsl.exe in command prompt with administration privileges return to VSCode to observe it no longer has connection to WSL's filesystem through the host server wait for the dialog to appear, asking to reconnect now or reload window attempt both options and observe still no chips! (even after multiple attempts) wait for IDE to appear (after reload att”
“Does this issue occur when all extensions are disabled?: N/A trying to run extension VS Code Version: 1.102.0 OS Version: 24H2 (OS Build 26100.4652 Repro I am running a Remote Session with WSL2 as the target. 1. Click on Extensions 2. Click on Browse MCP servers 3. Find Context7 from upstash 4. Click install, all good! That was pretty easy. 5. Click on start server Result: Other I have npx/node installed on my WSL remote machine: I tried installing node on my windows machine. In that case instal”
“Type: <b Bug</b If I remote in a server from vscode. I can open a terminal immediately and run ss add l and see my forwarded key. Then I open my workspace on the remote server. Vscode does its thing where it reloads the interface and asks me if I trust the workspace. I say yes. Now, if I do ssh add l I get an error!! Error connecting to agent: No such file or directory This has been happening on and off for years there are lots of threads about ssh forwarding breaking down in vscode. I decided t”
