Under the hood
No documentation found
Write-permission checks now branch based on whether Claude Code is running sandboxed
What
Claude Code now uses a different check to decide whether a file can be written to depending on whether the CLAUDE_CODE_SANDBOXED environment variable is set. Inside a sandbox, one internal check is used; outside of it, a different one applies. A related addition drains any pending write queues before this decision is finalized.
Why
This lets Claude Code apply the correct write-permission logic depending on whether it's running inside a sandbox (a restricted environment that limits what a process can access), rather than using one check for both situations.
Names in the bundleCLAUDE_CODE_SANDBOXED