Bash tool fails with EINVAL on Windows (v2.1.53)

Status Fixed / completed
Reported on v2.1.53
Maintainer reply None cached
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

  1. Open Claude Code on Windows
  2. Run any Bash command (e.g., echo hello)
  3. 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.

View original on GitHub ↗

4 Comments

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/28364
  2. https://github.com/anthropics/claude-code/issues/28357
  3. https://github.com/anthropics/claude-code/issues/28333

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

rubrical-worker · 6 months ago

Work around:
Use /config then set Auto-update channel to stable

You may need to install an earlier version.

shawnm-anthropic · 6 months ago

Hi, thanks for reporting. We just released v2.1.55 which should fix this.

github-actions[bot] · 5 months ago

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.