Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.179 Home All releases olderv2.1.178 v2.1.181newer
Claude Code v2.1.179

ExitWorktree: Graceful cwd Recovery

When exiting a git worktree, if the original working directory no longer exists (e.g., it was deleted while Claude was running in the worktree), Claude now tries fallback locations in order: the original worktree path, the home directory, and the process root. A clear message is shown:

The original directory /path/to/old-dir no longer exists, so the session is now in /home/user.
Consider restarting Claude from an existing directory.

If the fallback landed back in the worktree itself, the suggestion to restart is omitted.

Evidence

Recovery message (search for "The original directory") and log entry (search for "ExitWorktree: original directory")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.179 →