Terminal commands return no output on Windows (MINGW64)
Description
Commands executed via the Bash tool return no output on Windows with MINGW64/Git Bash, even though they appear to execute successfully.
Environment
- Platform: Windows (win32)
- OS Version: MINGW64_NT-10.0-26200 3.6.5-22c95533.x86_64
- Claude Code Version: Latest (Claude Opus 4.5)
Steps to Reproduce
- Run any command via the Bash tool, e.g.:
npm run buildnetlify deploy --prod --dir=distnetlify --version
- Observe that the tool returns:
````
<system>Tool ran without output or errors</system>
- Even with echo markers, output is missing:
``bash`
echo "Build output:" && npm run build && echo "Deploy output:" && netlify deploy --prod --dir=dist
`
Returns:
``
Build output:
Deploy output:
Expected Behavior
Commands should return their stdout/stderr output so Claude can see the results and act on them.
Actual Behavior
Commands return empty output or only partial output (echo statements work but command output is lost).
Workaround
User must run commands manually in their terminal.
Additional Context
This appears to be a pipe/stdout capture issue specific to Windows MINGW64 environment. The commands do execute (builds complete, deploys happen) but the output is not captured back to Claude.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗