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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗