[BUG] Bash output shows "(No content)" on Windows native since 2.1.x - was working 2 days ago
Open 💬 22 comments Opened Jan 17, 2026 by victor-gv
Environment
- Platform: Anthropic Subscription
- Claude CLI version: 2.1.12 (native installer)
- Operating System: Windows 11
- Terminal: Git Bash (VSCode integrated terminal) and PowerShell
Bug Description
Bash commands execute but return "(No content)" instead of showing the actual output. This was working perfectly 2-3 days ago.
Commands like tsc --noEmit, pnpm test, pnpm ts-check run successfully but Claude cannot see the output, making it impossible to debug TypeScript errors or test failures.
Steps to Reproduce
- Install Claude Code 2.1.12 on Windows (native installer)
- Open a project with TypeScript
- Ask Claude to run
tsc --noEmitor any npm/pnpm script - Observe "(No content)" in the output
Expected Behavior
Claude should see the full output of the command, including any TypeScript errors or test results.
Actual Behavior
● Bash(cd apps/web && pnpm ts-check)
⎿ (No content)
Claude assumes the command succeeded when there are actually multiple TypeScript errors.
Additional Context
- This worked correctly ~2-3 days ago (before 2.1.x update)
- Running the same commands manually in the terminal shows the expected output
- Tested in both Git Bash and PowerShell - same issue
- Not using WSL
Possibly related
- #5041
- #8078
22 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
been dealing with this the last couple of days, downgraded my installation to 2.1.7 and it just works on that version
Same ^ downgraded to 2.1.7 - and stuck there. 2 versions go by and this massive bug unseen by anthropic?
easy way to check is ask it
npm --version
it gets nothing which means it can't work with NPM at all. crazy
@malkhuzayyim @Badajoz95 moving to WSL worked for me at least to be able to continue working using Claude Code...
Similar issue here, it seems to xtrace (set -x) all the bash scripts I run in Claude Code when running within git bash on Windows. I reverted to 2.1.7 as mentioned above and it fixed the issue for me.
Possibly relevant additional info, that points to
set -o onecmdbeing the cuprit.Issue 19663 on macOS
This issue with bash input not producing any output has persisted since version 2.1.7, affecting both the native Windows 11 version and the npm version, and it still hasn't been resolved after such a long time.
Still persists today with Claude Code version 2.1.19 (released today).
My workaround is to get to the settings (/config) and then switch 'Auto-update channel' to 'stable', let the Claude Code CLI downgrade to 2.1.7 after a while, then restart the Claude Code CLI.
In another timeline there's a (very partial) workaround.
https://github.com/anthropics/claude-code/issues/18748
this did not work for me
downgrading loses all your conversations in progress. not a workaround for me.
mostly running into this with npm build. If you tell claude to use npm.cmd instead, it works.
2.1.27 fixed
not for me
not fixed
working for me under git bash in Windows Terminal on Windows 11.
❯ run echo "test"
∴ Thinking…
The user wants me to run the command echo "test" in the shell. Let me do that.
● Bash(echo "test")
⎿ test
And it works with no quotes as well.
<img width="2136" height="1599" alt="Image" src="https://github.com/user-attachments/assets/efc1421c-0ed6-4d86-8a79-ffcca737cf98" />
fixed
Fixed for me in 2.1.31
Defect reappeared after update to 2.1.32.
Update: it's not related to the new version. Claude installed via npm works fine on 2.1.32, but the same version on native install is not.
Same issue here with version 2.1.70, installed with winget
<img width="1344" height="831" alt="Image" src="https://github.com/user-attachments/assets/185d0866-bf89-4f8b-a1a9-038cccb7b699" />
I created a workaround for this issue. Here is a Claude prompt which implements the workaround.