The sandbox issues on WSL

Issues the maintainers labelled both platform:wsl and area:sandbox.

62 issues · 19 open · 43 resolved (69%) · first seen Feb 25, 2026

Is this getting better or worse?

This class of problem is still growing. 25 new reports in the last 90 days vs 16 in the 90 before — +56%. The open backlog peaked at 19 in 2026-10 and sits at 19 today.

0 5 10 14 19 2026-022026-052026-082026-10
2026-02 — First reports2026-04 — Most new reports (14)2026-10 — Peak backlog (19 open)

Derived by counting each matching issue from its creation date until it closed. First-party computation over the anthropics/claude-code tracker — the trend is not published anywhere upstream.

Which builds report this

44 of these reports name the Claude Code build they were running, spanning 39 releases. Heaviest reporters:

Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.

Do these get fixed?

Median time to close is 33 days across 43 closures. Of the 43 closures with a recorded reason, 33% were closed as completed and 29 as not-planned or duplicate. The most recent completed fix landed in 2026-08.

Workarounds reported by the community

26 of these issues post a workaround someone says worked. The highest-engagement ones:

[BUG] bwrap: execvp /bin/bash: No such file or directory — sandbox completely broken on all merged-usr Linux distros (Debian/Ubuntu/Arch), still unfixed after 3+ prior reports (#41863, #69583, #88059, #64799)
…at mount setup rather than at exec), but confirms does not work around this class of bug. Root cause (per 69583, still applicable in 2.1.289) The sandbox setup binds (and other allow-listed paths) into the new mount nam…
Found in the description of #99680 · still open
[BUG] 2.1.277: excludedCommands "every part must match" also drops single commands carrying a pre-subcommand flag (git -C, -c, --git-dir)
…I have not confirmed it on the first-party API or Bedrock. Workaround. Change directory in its own command, then run plain : Note that is not a workaround — that is genuinely a compound command, so the 2.1.277 rule corr…
Found in the description of #95455 · still open
Linux sandbox: recursive Read() deny globs expand to per-file bwrap binds → E2BIG on every command (incl. echo hello) when a denied directory holds many files
…n is dropped — this would at least make the directory-level workaround effective. 4. Guardrail. Detect when the generated bind argv would exceed / and emit a clear diagnostic (which glob expanded to how many paths) inste…
Found in the description of #74081 · still open
`--permission-mode dontAsk` bypasses `autoAllowBashIfSandboxed` for Bash commands containing shell variable expansion
…ntically relevant (e.g. from a prompt that passes via env). Workarounds require rewriting commands to read env values separately and inline them, which is not always feasible for generated tool calls. Likely 2.1.113 prov…
Found in the description of #51001 · resolved
[BUG] WSL2: Bash tool fails with E2BIG because Claude wraps bubblewrap in single /bin/bash -c string exceeding Linux MAX_ARG_STRLEN
…Observe: the tool call fails immediately with and . Minimal workaround confirmed: collapsing to a single broad entry (e.g. ) with narrow carve-outs for the binaries/caches/paths actually needed reduces bwrap argv below t…
Found in the description of #51126 · resolved

Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.

Matching issues 1–62

Ranked by community engagement (reactions weighted over comments).

Related aggregations

  1. The sandbox issues on macOS

    325 issues
  2. The sandbox issues on Linux

    198 issues
  3. The sandbox issues on Windows

    115 issues
  4. Terminal UI issues on WSL

    181 issues
  5. Core CLI issues on WSL

    101 issues
  6. Model behaviour issues on WSL

    93 issues
  7. Agents issues on WSL

    83 issues
  8. IDE integration issues on WSL

    82 issues