Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.179 ·

ExitWorktree: Graceful cwd Recovery

Entry
JSON All of v2.1.179
EntryKind: in v2.1.179,
ImprovementsSection of the release

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 →

Feedback