pwd fails in new sessions since 2.1.45 on Windows

Status Fixed / completed
Reported on v2.1.45
Maintainer reply None cached
Activity 3 comments · opened Feb 18, 2026 · closed Feb 18, 2026

Description

Starting with version 2.1.45, new Claude Code sessions on Windows fail to resolve the working directory. Running pwd immediately after starting a session returns exit code 1 and Claude reports the CWD doesn't exist on disk.

This works correctly in 2.1.42.

Repro steps

  1. claude in any project directory
  2. Run pwd
  3. Exit code 1, Claude says the directory doesn't exist

Expected behavior

pwd should print the current working directory and exit 0, as it does in 2.1.42.

Environment

  • Works: 2.1.42
  • Broken: 2.1.45
  • Platform: Windows 11 Pro (10.0.26200)
  • Shell: Git Bash / MSYS2

Workaround

Revert to 2.1.42

View original on GitHub ↗

3 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/26462
  2. https://github.com/anthropics/claude-code/issues/26486
  3. https://github.com/anthropics/claude-code/issues/26413

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

rweijnen · 7 months ago

Duplicate of #26462 -- same root cause: v2.1.45 stdout pipe broken on Windows.

github-actions[bot] · 7 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.