You'll notice
Bash sandbox execution now guarantees its cleanup callback runs exactly once, even on early abort
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.