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 ·

Sandbox scrub/cleanup now deferred until the spawned process actually exits

Sandbox cleanup now waits for the spawned process to actually exit before scrubbing

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSandboxwhat it touches
KindInternal Changesin v2.1.271,
Under the hood

Sandbox cleanup now waits for the spawned process to actually exit before scrubbing

What

Sandbox cleanup functions (cleanupAfterCommand, scrubAfterCommand) now run in response to a spawned process's exit or error events, instead of running immediately after the command is started. Snapshots of paths needing cleanup — such as bare git repositories and symlinked deny paths — are taken before scrubbing begins, so cleanup can use the state as it was prior to scrubbing.

Why

Running cleanup only after the process truly exits avoids scrubbing sandbox state while the command might still be using it, making cleanup more reliable.

See this entry in the whole of v2.1.271 →