Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.271 ·

Bash sandbox execution adds a dispose-guarded cleanup callback

Bash sandbox execution now guarantees its cleanup callback runs exactly once, even on early abort

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSandboxwhat it touches
KindBug Fixesin v2.1.271,
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.

See this entry in the whole of v2.1.271 →