{"version":"2.1.121","anchor":"shell-cwd-recovery","canonical_anchor":"shell-cwd-recovery","heading":"Shell CWD Recovery","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121\/e\/shell-cwd-recovery","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121","markdown":"### Shell CWD Recovery\n\n**What**\n\nWhen the shell's current working directory is deleted (e.g., by a branch switch or cleanup), Claude Code now recovers gracefully and informs the user.\n\n**Details**\n\n- Detects when cwd is removed and recovers to a valid directory\n- Shows message: \"{path} was deleted; shell cwd recovered to {new path}\"\n- Advises re-issuing the command from the recovered directory\n\n**Evidence**\n\nCWD recovery handler (search for `\"was deleted; shell cwd recovered\"`)"}