Claude Code on Windows: every shell command fails with exit code 1 and empty output
tamalejuan42-alt · ghdev · 2026-09-14
A bug report against Claude Code's Windows desktop app describes a platform-level failure: every command run through the shell tool instantly exits with code 1 and completely empty stdout/stderr, even trivial ones like Write-Output "hello" or exit 0.
- Execution policy ruled out (Bypass at LocalMachine); PowerShell works fine when invoked manually, including with -NonInteractive -NoProfile
- The failure appears specific to how the app spawns the child shell
- The tool surfaces no diagnostic detail beyond "Exit code 1"
More from coding & agent
- User builds 20-bot Grok suite to track wins, prep 1:1s and close promises — NicoVerderosa · 2026-10-30
- LangChain CEO opens Interrupt London with keynote on why orgs should own their intelligence — LangChain · 2026-10-30
- Simlock: open-source control plane gives parallel coding agents their own iOS/Android simulators — Scobleizer · 2026-10-30
- YC experiment: Claude agents formed democracies while GPT agents formed hives — soumitrashukla9 · 2026-10-30
- Keyfleet launches open canvas where personal AI agents team up with a shared USDC treasury — seanwbren · 2026-10-30
- Page-based project management for Grok Bots: keep chats short, history on Pages — AiJohnAllen · 2026-10-30