{"version":"2.1.271","anchor":"bash-sandbox-execution-adds-a-dispose-guarded-cleanup-callba","canonical_anchor":"bash-sandbox-execution-adds-a-dispose-guarded-cleanup-callba","heading":"Bash sandbox execution adds a dispose-guarded cleanup callback","tier":"notice","area":"Sandbox","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/bash-sandbox-execution-adds-a-dispose-guarded-cleanup-callba","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### Bash sandbox execution adds a dispose-guarded cleanup callback\n\nBash sandbox execution now guarantees its cleanup callback runs exactly once, even on early abort\n\n**What**\n\nThe code that runs shell commands inside Claude Code's sandbox (an isolated execution environment) now wraps a cleanup step in a disposable guard that ensures the cleanup function runs exactly once. Previously, an early-return path that aborts execution could skip running that cleanup function; now it explicitly runs it before returning.\n\n**Why**\n\nThis prevents leftover state from a shell command that gets aborted early, since the cleanup step that used to be skipped on that path now always runs.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}