WSL: "Run in Sandbox" not available

I run Cursor in WSL. Based on https://cursor.com/docs/agent/terminal “Run in Sandbox” should be available in the “Auto-Run Mode” drop-down. It is not there. I have confirmed I meet these requirements:
* Kernel 6.2 or later with Landlock v3 support (CONFIG_SECURITY_LANDLOCK=y)
* Unprivileged user namespaces enabled (most modern distributions have this by default)
I am also running Cursor version 2.3.18
Am I correct that sandbox should be available for me? If yes, is there a known issue?

Thanks

Hey, thanks for the report.

The “Run in Sandbox” option is only available with the new terminal. You need to turn off Legacy Terminal if it’s enabled:

  • Open Cursor Settings Ctrl+Shift+J
  • Search for “Legacy Terminal Tool” under Agents > Inline Editing & Terminal
  • Disable this setting

After that, the “Run in Sandbox” option should show up in the dropdown.

Sadly, that doesn’t solve it. I didn’t know that, but unfortunately, the “Legacy Terminal Tool” had already been turned off. I confirmed “Run in Sandbox” is still not available.

1 Like

@dmschlot Sorry for the issues! Can you open the Output pane (on the same section as terminal) and look at the “Extension Host” and “Extension Host (remote)” logs to see if there is anything Interesting in there?

@ani-anysphere
I do not see anything containing “Host”. I just restarted Cursor, checke settings again, and this is all that was in “Output”. As shown below there is one error: Failed to patch code.sh launcher

2026-01-05 09:36:30.297 [info] Resolving wsl remote authority 'wsl+ubuntu' (attempt #1)
2026-01-05 09:36:30.297 [info] Installing cursor-server with options: {"id":"795ca53be97e55773dd744e8","commit":"68e0a0385b87408d050869ea543e3778ad53f780","line":"production","realCommit":"68e0a0385b87408d050869ea543e3778ad53f78a","extensionIds":[],"serverApplicationName":"cursor-server","serverDataFolderName":".cursor-server","forceReinstall":false,"killRunningServers":false}
2026-01-05 09:36:30.297 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open 'c:\Users\david\AppData\Local\Programs\cursor\resources\app\bin\code'
2026-01-05 09:37:01.794 [info] [wsl exec: installServerScript][stderr]: 2026-01-05 09:37:01 URL:https://downloads.cursor.com/production/68e0a0385b87408d050869ea543e3778ad53f78a/linux/x64/cursor-reh-linux-x64.tar.gz [76616155/76616155] -> "/tmp/tmp.Cr3QXKIcFP" [1]
2026-01-05 09:37:05.336 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2026-01-05 09:37:05.468 [info] Successfully connected to Cursor server at http://127.0.0.1:33505/version from Windows
2026-01-05 09:37:05.468 [info] Returning resolved authority for Cursor server at http://127.0.0.1:33505/version from Windows. Returning token: 72bbe5e2-6a67-45e1-9855-d5b442a3e2fa

@ani-anysphere Sorry, in a rush I misread your message. I do see some interesting info in “Extension Host (Remote)”. See below. There are a number of “undefined” references

2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check... undefined
2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: /home/davidsch/.cursor-server/bin/68e0a0385b87408d050869ea543e3778ad53f780/resources/helpers/cursor-sandbox undefined
2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true undefined
2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [isSandboxHelperSupported] Running preflight with binary: /home/davidsch/.cursor-server/bin/68e0a0385b87408d050869ea543e3778ad53f780/resources/helpers/cursor-sandbox undefined
2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [isSandboxHelperSupported] CWD: /mnt/c/Users/david/AppData/Local/Programs/cursor undefined
2026-01-05 09:37:15.116 [error] [shell-exec:sandbox] [isSandboxHelperSupported] Preflight succeeded, sandbox supported! undefined

Has anyone seen this issue before, or have a guess as to what the problem could be?

Thanks

Has anyone seen this issue before, or have a guess as to what the problem could be?

Thanks

@ani-anysphere and @deanrie ,

Sorry to bother but based on my logs, do either of you know what I should do next?

Thanks

We’ve made some fixes to this in the next release coming out soon, hold tight for a bit (enable beta releases and it should show up sooner)

Thanks for the update. I’m now up to date, but sadly “Run in Sandbox” is still not available in the “Auto-Run Mode” drop-down. Here is the relevant part of the “Extension Host (Remote)” output. It looks much better this time, with fewer undefineds, and also states “Sandbox support detected: true” but the sandbox is still not available in Cursor.

Thoughts?

Thanks


2026-01-23 06:53:39.842 [info] Extension host with pid 5345 started
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] Initializing terminal executor with userTerminalHint: undefined
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] Detecting sandbox support...
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] Platform: linux, Shell type: unknown
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] dirname: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/out/vs/workbench/api/node
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] Sandbox helper path: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/resources/helpers/cursorsandbox
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] process.resourcesPath: undefined
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] process.execPath: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/node
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] ripgrep path for sandboxing: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/resources/helpers/rg
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check...
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/resources/helpers/cursorsandbox
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Running preflight with binary: /home/davidsch/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/resources/helpers/cursorsandbox
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [isSandboxHelperSupported] CWD: /mnt/c/Users/david/AppData/Local/Programs/cursor
2026-01-23 06:53:39.843 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Preflight succeeded, sandbox supported!
2026-01-23 06:53:39.843 [info] [ExtHostShellExec] Sandbox support detected: true

What happens if you open an agent while connected via Remote SSH and ask it “what are your shell env vars”, does it say something about sandbox as one of them?

Good news, yesterday, or maybe the day before, the option appeared! Its sandboxing. I’m not sure why but likely it was a Cursor update. Thanks!

Which distribution did you choose when installing WSL?