Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I have Cursor open in a WSL project (connected via the WSL extension), clicking “Switch to Agents Window” opens the Agents Window rooted at my Windows home directory (C:\Users<username>) instead of the WSL project workspace.
The agent then has no access to the project files, cannot run WSL commands (all wsl invocations return empty output).
Steps to Reproduce
Open Cursor connected to a WSL project
Confirm the editor window is correctly rooted in the WSL workspace
Click “Switch to Agents Window”
Observe: the Agents Window workspace root is C:\Users<username> — the WSL context is lost entirely
Expected Behavior
The Agents Window should inherit the WSL workspace root (e.g. \wsl.localhost//home//project) so the agent can access project files, run commands in the correct shell, and respect .cursor/rules from the project.
Actual behavior
Workspace root silently changes to the Windows home directory
Agent shell runs PowerShell on Windows instead of the WSL shell
WSL commands return empty output
No indication to the user that the workspace context was dropped
Operating System
Windows 10/11
Version Information
OS: Windows 11 (build 26200)
WSL details=== Default Distro OS Info ===PRETTY_NAME=“Ubuntu 22.04.5 LTS”VERSION=“22.04.5 LTS (Jammy Jellyfish)”
=== Kernel ===PS C:\Users\horvrud> wsl – bash -c “uname -a”Linux *** 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
=== WSL Version ===WSL version: 2.6.3.0Kernel version: 6.6.87.2-1WSLg version: 1.0.71MSRDC version: 1.2.6353Direct3D version: 1.611.1-81528511DXCore version: 10.0.26100.1-240331-1435.ge-releaseWindows version: 10.0.26200.8037
Cursor details:Version: 3.1.10 (user setup)VSCode Version: 1.105.1Commit: dacbe9b31599a253763e4910eb6ab38704653320Date: 2026-04-13T11:39:16.806ZLayout: editorBuild Type: StableRelease Track: DefaultElectron: 39.8.1Chromium: 142.0.7444.265Node.js: 22.22.1V8: 14.2.231.22-electron.0OS: Windows_NT x64 10.0.26200
Additional Information
Seemingly relevant thread, but closed: Unable to access WSL paths in the new agent window - #8 by Chris_Combe
Does this stop you from using Cursor
No - Cursor works, but with this issue



