Claude Code 2.1.314 can block writes outside working directories and brings idle compaction to VS Code and Desktop
Claude Code 2.1.314 adds a permissions setting that stops file tools writing outside the working directories in every mode, IdP-group routing for Claude apps gateway upstreams, and idle compaction in VS Code and Claude Desktop.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingOptional: if your security policy requires agents to stay inside the repo, set permissions.blockWritesOutsideWorkingDirectories in managed settings. Teams that run a Claude apps gateway can now route upstreams by IdP group.
Engineer
What to change, what breaks, what to test Worth knowingUpdate to 2.1.314. Scripts that check `claude -p` exit codes now get 1 when startup fails, and FORCE_HYPERLINK=false now turns hyperlinks off. Cloud sessions now start even when the setup script fails, so check that script's output yourself.
General consumer
Using the Claude apps, not the API No impactNothing to do. This Claude Code release covers developer settings and fixes, and it does not change chat in the Claude apps.
Claude Code 2.1.314 is the only release in this window; the changelog goes from 2.1.312 straight to 2.1.314.
New settings. permissions.blockWritesOutsideWorkingDirectories makes Write, Edit and NotebookEdit refuse any path outside the working directories, in every permission mode, including auto and bypass. Claude apps gateway upstreams accept an optional groups list, so only developers in the listed IdP groups are routed to that upstream (failover included), and Bedrock upstreams accept guardrail_trace to log which Amazon Bedrock guardrail filter fired, without the matched text.
Idle compaction reaches VS Code and Claude Desktop’s Code tab. A conversation over 200K tokens left idle is summarized, and the summary is used on the next message if the prompt cache has expired. It now also runs for subscribers with telemetry off, and on Bedrock, Vertex, Foundry and LLM gateways once the one-hour prompt cache is on.
Behaviour changes worth knowing. Cloud sessions started from the web, desktop and mobile apps now start even when the setup script exits with an error, instead of failing. In Cowork cloud sessions, a hook that allows an MCP tool call in auto mode now counts as no answer, so the classifier or a permission prompt decides. FORCE_HYPERLINK=false (also no, off) now turns hyperlinks off; it previously turned them on. When an admin caps a model’s effort, Claude Code now lowers the effort and retries instead of failing every turn with “Invalid effort level”, and claude -p now exits 1 with an error when startup fails rather than exiting 0 with no output.
The rest of the release is fixes: Bedrock image-heavy sessions, Foundry fallback when the default model has no deployment, model IDs spelled with a dot behind a gateway, managed-settings and TLS handling, and many interface fixes.
The changelog does not date the release. The date is inferred from the npm publish time of 2.1.314, 00:12 UTC on October 30, 2026 (the evening of October 29 in Pacific time).
Topics: Coding tools