[BUG] Claude Code failed to run in VS Code Integrated Terminal through Sandboxie
Resolved 💬 4 comments Opened Nov 13, 2025 by metacpp Closed Feb 14, 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?
Hello team,
I want to run Claude Code (v2.0.37) through Sandboxie in a Sandboxing environment on Windows. However, it crashed due to EPERM issue when invoking setRawMode. The keyboard input is fully broken, so there's no any interaction working.
What Should Happen?
Claude Code can successfully run in Sandboxie environment on Windows, accept user inputs as prompts, similar to Gemini CLI in Sandboxie.
Error Messages/Logs
ERROR setRawMode failed with errno: 1
node:tty:32:41
- <anonymous> (node:tty:32:41)
- handleSetRawMode (B:/~BUN/root/claude.exe:217:179)
- <anonymous> (B:/~BUN/root/claude.exe:218:335)
- KS (B:/~BUN/root/claude.exe:103:21525)
- LU (B:/~BUN/root/claude.exe:103:41112)
- <anonymous> (B:/~BUN/root/claude.exe:103:39301)
- K_$ (B:/~BUN/root/claude.exe:97:4054)
- Q_$ (B:/~BUN/root/claude.exe:97:4472)
Steps to Reproduce
- Install Sandboxie from this link.
- Install latest version of native Claude Code on Windows.
- Run below command:
"C:\Program Files\Sandboxie\Start.exe" /box:DefaultBox "%USERPROFILE%/.local/bin/claude.exe"
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.37
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗