Bash tool fails with EINVAL on Windows (v2.1.53)
Status Fixed / completed
Reported on v2.1.53
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 4 comments · opened Feb 25, 2026 · closed Feb 25, 2026
Description
The Bash tool fails on every invocation with an EINVAL error when trying to open its temp output file on Windows.
Error
EINVAL: invalid argument, open 'C:\Users\janar\AppData\Local\Temp\claude\C--Users-janar-Claude-tmp\tasks\<id>.output'
Environment
- Claude Code version: 2.1.53
- OS: Windows 11 Home 10.0.26200
- Shell: bash
- Binary location: C:\Users\janar\.local\bin\claude.exe
- Binary last modified: 2026-02-24 (today, likely auto-updated)
Steps to Reproduce
- Open Claude Code on Windows
- Run any Bash command (e.g., echo hello)
- Every command fails with the EINVAL error above
Attempted Fixes
- Manually creating the temp directory - did not help
- Restarting Claude Code - did not help
Notes
This started after the binary was updated today (2026-02-24). All other tools (Read, Write, Edit, Grep, Glob) work fine - only Bash is affected.
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Work around:
Use /config then set Auto-update channel to stable
You may need to install an earlier version.
Hi, thanks for reporting. We just released v2.1.55 which should fix this.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.