{"version":"2.1.179","anchor":"exitworktree-graceful-cwd-recovery","canonical_anchor":"exitworktree-graceful-cwd-recovery","heading":"ExitWorktree: Graceful cwd Recovery","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.179\/e\/exitworktree-graceful-cwd-recovery","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.179","markdown":"### ExitWorktree: Graceful cwd Recovery\n\nWhen 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:\n\n`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.\n\n**Evidence**\n\nRecovery message (search for `\"The original directory\"`) and log entry (search for `\"ExitWorktree: original directory\"`)"}