pwd fails in new sessions since 2.1.45 on Windows

Resolved 💬 3 comments Opened Feb 18, 2026 by rweijnen 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 ↗

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