pwd fails in new sessions since 2.1.45 on Windows
Status Fixed / completed
Reported on v2.1.45
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
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
claudein any project directory- Run
pwd - 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
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Duplicate of #26462 -- same root cause: v2.1.45 stdout pipe broken on Windows.
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.