# WSL: "Run in Sandbox" not available

**URL:** <https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786>\
**Category:** Help\
**Tags:** sandbox\
**Created:** [January 1, 2026, 8:34pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786 "2026-01-01T20:34:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 1, 2026, 8:34pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/1 "2026-01-01T20:34:47Z")

</div>

I run Cursor in WSL. Based on [https://cursor.com/docs/agent/terminal](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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 2, 2026, 7:10am UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/3 "2026-01-02T07:10:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 2, 2026, 12:32pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/4 "2026-01-02T12:32:29Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/7/37840192193de4b36b8f07facb51bc7ad943a256.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/e/b/eba877cd0d1649d7ace11a31fba4eb42ce24385e.png)

---

<div class="post-metadata">

**Author:** ![ani-anysphere](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@ani-anysphere](https://forum.cursor.com/u/ani-anysphere)\
**Post date:** [January 5, 2026, 2:22pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/7 "2026-01-05T14:22:15Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 5, 2026, 3:51pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/8 "2026-01-05T15:51:50Z")

</div>

@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`

```auto
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

```

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 5, 2026, 3:55pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/10 "2026-01-05T15:55:22Z")

</div>

@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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 7, 2026, 5:07pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/12 "2026-01-07T17:07:17Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 15, 2026, 6:10pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/14 "2026-01-15T18:10:55Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 16, 2026, 8:23pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/16 "2026-01-16T20:23:11Z")

</div>

@ani-anysphere and @deanrie ,

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

Thanks

---

<div class="post-metadata">

**Author:** ![ani-anysphere](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@ani-anysphere](https://forum.cursor.com/u/ani-anysphere)\
**Post date:** [January 19, 2026, 4:13pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/18 "2026-01-19T16:13:20Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 23, 2026, 1:03pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/19 "2026-01-23T13:03:27Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![ani-anysphere](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@ani-anysphere](https://forum.cursor.com/u/ani-anysphere)\
**Post date:** [January 28, 2026, 8:36pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/21 "2026-01-28T20:36:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [January 29, 2026, 12:01am UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/22 "2026-01-29T00:01:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![olejorgenb](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/olejorgenb/32/94761_2.png) [@olejorgenb](https://forum.cursor.com/u/olejorgenb)\
**Post date:** [February 27, 2026, 7:50am UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/24 "2026-02-27T07:50:17Z")

</div>

Which distribution did you choose when installing WSL?

---

<div class="post-metadata">

**Author:** ![dmschlot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dmschlot/32/35362_2.png) [@dmschlot](https://forum.cursor.com/u/dmschlot)\
**Post date:** [March 6, 2026, 1:12pm UTC](https://forum.cursor.com/t/wsl-run-in-sandbox-not-available/147786/26 "2026-03-06T13:12:59Z")

</div>

I use Ubuntu
