{"version":"2.1.327","anchor":"missing-working-directory-for-a-command-is-recreated-and-the","canonical_anchor":"missing-working-directory-for-a-command-is-recreated-and-the","heading":"Commands whose starting folder has vanished are not run","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/missing-working-directory-for-a-command-is-recreated-and-the","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Commands whose starting folder has vanished are not run\n\nIf the folder a command was meant to start in is gone, Claude Code skips the command, recreates the folder empty and asks Claude to resend it\n\n**Unclear.** This behaviour sits behind a setting whose default could not be determined, so it may not be active for everyone.\n\n**What**\n\nWhen Claude asks to run a command, the command starts in a particular folder, called its working directory. If that folder has been deleted in the meantime, Claude Code now does not run the command. Instead it:\n\n- recreates the folder, empty\n\n- tells Claude the command was not run because the folder and the files in it were gone\n\n- asks Claude to send the command again\n\n**Why**\n\nWithout this, a command could run in an empty folder you did not expect, and its results could be misleading or wrong. Claude is now told plainly that the files are gone, so it can decide what to do next.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}