You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SandboxArea: what it touches
Bug FixesKind: in v2.1.271,
Bug FixesSection of the release
What
The 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.
Why
This 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.