Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Opening a WSL project folder from Windows via a UNC path (\\wsl$\<distro>\...) loads .cursor/hooks.json correctly, but hook execution always fails.
Steps to Reproduce
- On Windows, open Cursor without connecting through the WSL extension.
- Open a folder on the WSL filesystem via UNC, e.g.
\\wsl$\Debian12\home\dev\src\Saint-Etienne - Confirm the warning:
“Opening a WSL folder without using the WSL extension is not recommended”. - Ensure the project has
.cursor/hooks.jsonwith at least onesessionStart/workspaceOpenhook, for example:
{
"version": 1,
"hooks": {
"sessionStart": [
{
"command": ".cursor/TestHook --event OnSessionStart",
"timeout": 30
}
],
"workspaceOpen": [
{
"command": ".cursor/TestHook --event OnWorkspaceOpen",
"timeout": 30
}
]
}
}
- Reload the window / start a new agent session so hooks run.
- Open Output → Hooks, or the log file under
%APPDATA%\Cursor\logs\<session>\window*\output_*\cursor.hooks.workspaceId-*.log
Expected Behavior
- Workspace root and hook
cwdshould preserve the full UNC path
(\\wsl$\Debian12\home\dev\src\Saint-Etienne), or - Cursor should refuse/disable project hooks with a clear error when the workspace is opened via unsupported
\\wsl$\...access, or - Preferentially: require / redirect to WSL remote mode where Linux hooks can run correctly.
Hook spawn should not fail with a false powershell.exe ENOENT.
Operating System
Windows 10/11
Linux
Version Information
Product: Cursor
Version: 3.29.9
OS: Windows 10/11 (win32 10.0.26200) + WSL2 (Debian)
Date observed: 2026-11-05
Does this stop you from using Cursor
No - Cursor works, but with this issue