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

Resolved 💬 4 comments Opened Feb 25, 2026 by AAAAAThatsSixAs 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 ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗