{"version":"2.1.331","anchor":"directory-move-cd-rolls-back-sandbox-config-paths-on-fail","canonical_anchor":"directory-move-cd-rolls-back-sandbox-config-paths-on-fail","heading":"A failed \/cd now puts the sandbox settings back as they were","tier":"notice","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/directory-move-cd-rolls-back-sandbox-config-paths-on-fail","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### A failed `\/cd` now puts the sandbox settings back as they were\n\nIf `\/cd` fails partway, Claude Code now restores the old sandbox settings entry and reports the real error\n\n**What**\n\n`\/cd` moves your session to a new working directory. A sandbox is the set of limits on what commands can touch, and its settings are tied to the directory. Claude Code now records which sandbox settings files apply before the move, and in some cases sets up the entry for the new directory.\n\nPart of the move is moving the transcript, the saved record of the conversation. If that step fails, Claude Code now restores the old sandbox settings entry. It then reports the error that actually caused the failure. Before, only a smaller part of the session's directory information was restored, and the error passed on was not the original one.\n\n**Why**\n\nA failed `\/cd` leaves the sandbox settings consistent with the directory you are still in, and the error you see describes what really went wrong.\n\n- Area: Sandbox\n- Names: `\/cd`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}