[BUG] Claude code freezes when running in sandbox (WSL)

Resolved 💬 3 comments Opened Apr 28, 2026 by tomek3e Closed Jun 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude code freezes when running commands with sandbox enabled (same on both sandbox modes) on wsl, e.g. when testing domain permissions:

❯ use curl (not your WebFetch) to fetch google.com as a test

● Bash(curl -s -o /dev/null -w "%{http_code}" https://google.com)
  ⎿  Running…

✶ Spelunking… (4s · ↓ 138 tokens · thinking)
  ⎿  Tip: Double-tap esc to rewind the code and/or conversation to a previous point in time

Nothing happens after that, terminal is unresponsive. Same issue whether a given domain is whitelisted or not. Changing "allowManagedDomainsOnly": true/false also makes not difference.

Claude Code: 2.1.121
Windows version: 10.0.26200.8246
WSL version: 2.6.3.0
Kernel version: 6.6.87.2-1
bubblewrap 0.6.1
socat version 1.7.4.1 

What Should Happen?

Claude should proceed with processing the prompt and running the command.

Error Messages/Logs

Steps to Reproduce

  1. Enable sandbox on WSL.
  2. Configure allowed and denied domains in sanbox.network.
  3. Ask claude to use curl on any domain

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.121

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗