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
- Cloudflare ships granular authz for Workers, its most requested feature — dinasaur_404 · 2026-09-15
- px0 adds millisecond full-text search, project-wide file open and auto-reload — arpit_bhayani · 2026-09-15
- Cloudflare adds granular authz to Workers with four roles for teammates and agents — dinasaur_404 · 2026-09-15
- Pick one coding agent harness, learn it deeply, and stop switching tools — iannuttall · 2026-09-15
- Hypothesis creator hiring London engineers for Hegel, open-source property-based testing — xuanalogue · 2026-09-15
- Adaption AI launches Invent API: training datasets from a prompt, no strings attached — sarahookr · 2026-09-15