When restoring or adopting a session's reported working directory, Claude Code now rejects absolute or network-shaped paths outright. For other paths, it verifies the local ancestry doesn't resolve through a network path before trusting the cwd, logging a warning and declining to adopt it if verification fails or is inconclusive.
Session-reported cwd is checked for network-path ancestry before being adopted
A session's reported working directory is refused if it is network-shaped or its ancestry cannot be verified.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
Bug FixesKind: in v2.1.257,
Bug FixesSection of the release