Claude Code ignores odd Windows device paths reported by your shell and keeps the previous directory.
What's wrong with this entry?
When the shell reports back a working directory that looks like a Windows NT device-namespace path, Claude Code now logs a warning and keeps the previous directory instead of adopting it. This joins the existing guards for dot segments, network paths and foreign automounts, and runs on every read-back.
shell cwd read-back is an NT-namespace device path; ignoring
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.236
Windows sandbox runtime now installs machine-wide
Both mention window
-
v2.1.239
PowerShell path checks distinguish a timeout from an error
Both mention window
-
v2.1.239
Windows pipe names no longer mangled by locale-specific lowercasing
Both mention window