Claude Code 2.1.325 changes sandbox and permission defaults
Brief
Claude Code 2.1.325 changes when commands and scheduled tasks require approval, alongside fixes to sandbox protections and permission checks.
Permission and sandbox changes
- Sandboxed Bash commands now follow the normal permission flow by default. Set
sandbox.autoAllowBashIfSandboxed: trueto keep running them without prompts. - Read-only Git commands in repositories that are neither the project repository nor trusted now ask first. Use
--add-dirto name a repository for running them without prompts. - Scheduled tasks and
/loopnow ask before running skills that declareallowed-toolsor hooks. AddSkill(name)topermissions.allowto run one unattended. - Sandboxed writes to
.claudesettings, skills, agents, commands and hooks in added directories are now refused.
Security and reliability fixes
- The release fixes a security issue in decoding zstd-compressed responses and addresses gaps in Bash permission checks and sandbox protections.
- It also fixes issues including sessions losing recent turns after an unclean exit, context-length errors on some gateways, and MCP tasks or connections getting stuck.
Generated by AI from the original article. Check the source for full details.