{"version":"2.1.328","anchor":"directory-move-now-refuses-sandboxed-commands-if-sandbox-con","canonical_anchor":"directory-move-now-refuses-sandboxed-commands-if-sandbox-con","heading":"Sandboxed commands are refused after \/cd if the sandbox cannot be set up","tier":"notice","area":"Sandbox","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/directory-move-now-refuses-sandboxed-commands-if-sandbox-con","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Sandboxed commands are refused after \/cd if the sandbox cannot be set up\n\nAfter `\/cd`, if Claude Code cannot rebuild the sandbox for the new folder, it refuses sandboxed commands and tells Claude why\n\n**What**\n\n`\/cd` moves your session to a different working folder. In a sandboxed session (where commands run with limits on what they can touch), Claude Code now checks after the move whether the sandbox settings could be rebuilt for the new folder. If they could not, it logs an error and tells Claude that sandboxed commands are refused.\n\n**Why**\n\nCommands do not run in the new folder under sandbox settings that still belong to the old one. If commands are refused after `\/cd`, this is why.\n\n- Area: Sandbox\n- Names: `\/cd`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}