Claude Code v2.1.314: block writes outside working directories, idle compaction
A new permissions.blockWritesOutsideWorkingDirectories setting makes Write, Edit and NotebookEdit refuse paths outside the working directories in every permission mode. Idle compaction of 200K+ token conversations comes to VS Code and Claude Desktop, and the…
Why it matters
The new setting is a simple guardrail against the agent touching files outside the project.
What happened
1 min readA new permissions.blockWritesOutsideWorkingDirectories setting makes Write, Edit and NotebookEdit refuse paths outside the working directories in every permission mode. Idle compaction of 200K+ token conversations comes to VS Code and Claude Desktop, and the Claude apps gateway gains IdP group routing and Bedrock guardrail tracing. Dozens of fixes land, including claude -p exiting silently with code 0 and several Bedrock and Foundry failures.
Our analysis
The write lock is the change most teams will want, since it applies in every mode including automatic ones. Fixing claude -p exiting 0 on startup failure matters for CI, where failures were being hidden. Most other items are enterprise and gateway fixes. Nothing in these notes addresses today's reports of a compromised Claude Code extension.