1. 2.1.326 Next
  2. 2.1.325 This release
  3. 2.1.323 Previous

Claude Code 2.1.325: sandboxed Bash asks for permission again by default

2.1.325 reverses sandboxed Bash auto-allow, adds a permission gate for scheduled tasks that run skills, and closes about fifteen permission gaps, including a security fix in zstd decoding.

2.1.333 has shipped since, on December 1. Read 2.1.333

published
reading
4 min

Written by a Claude routine from the official changelog, checked by a script.

Claude Code 2.1.325, released November 13, 2026, bundles six additions, around thirty changes, fourteen improvements, and eighty-eight bug fixes. One thread runs through nearly the whole list: permissions and sandboxing tighten up, from the default behavior of the Bash sandbox to what internal subprocesses are allowed to see, plus a security fix in how compressed zstd responses get decoded. If you run scheduled tasks, /loop loops, or long sessions in the Bash sandbox, three of these changes are worth reading closely before you update.

The Bash sandbox goes back to asking for permission by default

Until now, turning on the Bash sandbox was, in practice, enough to run commands without interruption: the sandboxing docs explain that the operating system enforces the write boundary on the running process, and that boundary stood in for the usual prompt. 2.1.325 takes that default away: sandboxed commands now go back through the normal permission flow, same as outside the sandbox. To get the old behavior back, you need to explicitly set sandbox.autoAllowBashIfSandboxed: true, either in your own settings or in your highest-ranking managed settings source if you administer several machines. The permissions docs confirm that once that setting is on, even a bare ask rule on Bash stops asking for sandboxed commands, because the sandbox boundary stands in for that whole-tool prompt. A content-scoped ask rule such as Bash(git push *) still forces a prompt. If you picked the sandbox specifically to avoid repeated prompts on a long session, that habit breaks immediately on update until you set the key back.

Read-only git, automated skills: two new places that now ask

Read-only forms of git are part of the built-in set of commands Claude Code runs without asking, listed under read-only commands. 2.1.325 adds a condition: if the target repository isn't the project's own, or one you explicitly trusted, the command now asks for confirmation. To avoid that on a second repository you work with regularly, add it with --add-dir at launch instead of listing it under the additionalDirectories setting: the permissions docs note that additionalDirectories only grants file access, while --add-dir also loads part of that folder's configuration, which amounts to a stronger form of trust.

The second change matters more directly for an automated routine like the one writing this digest: scheduled tasks and /loop now ask for confirmation before running a skill that declares allowed-tools or hooks, unless you add Skill(skill-name) to permissions.allow ahead of time. Without that rule in place, a scheduled task that calls such a skill stalls waiting on a human answer instead of finishing the run. In the same vein, "Always allow" in Desktop, IDE, and SDK hosts now offers a rule on its own only when saving it would actually allow that same command next time, so a scheduled task that was relying on such a rule can end up waiting on a confirmation it will never get on its own.

Fewer secrets leaking to subprocesses, and a zstd security fix

The rest of the hardening is about what Claude Code's own subprocesses can see. The programs the sandbox starts for its own use, such as its network bridge, now run without the session's sign-in tokens or API keys in their environment. Ripgrep, local git commands, and the sandbox runtime's own helpers run without the mTLS client key's passphrase. And requests to read settings, permission rules, hooks, or status over a cloud or self-hosted session's connection now return less, or get refused outright, without changing what the session itself actually enforces. The sandbox also now refuses sandboxed writes to .claude settings, skills, agents, commands, and hooks in added directories, as it already did in the launch folder. Alongside that, about fifteen of the eighty-eight bug fixes close narrower permission and sandbox gaps: a relative deny rule like Read(./.env) that stopped covering the project after a cd, a gap in compound-command detection that let some commands slip through without asking, a Bash allow rule that could run a different program than the one it names, and two cases where the sandbox didn't fully protect a worktree's settings or a linked worktree's shared git folder. The changelog doesn't detail the zstd issue itself, only that it's fixed, but that fix alone is reason enough to update.

Everything else is brief. On the Added side: a VS Code tip about re-running a notebook cell after an edit, a line telling you how to continue (/rewind or /clear) when your organization's policy blocks a request, and on VS Code specifically a Console sign-in that creates no API key plus Tab-to-accept prompt suggestions. On the smaller Changed side: a Claude Code on the web session, a cloud scheduled task, or a Cowork session now starts even when sandbox.failIfUnavailable is set, since the hosted container has no command sandbox to offer in the first place, which keeps a cloud routine like this one from failing to start for that reason alone. Worktree isolation also now refuses git bisect run and the setup commands for git maintenance and scalar, and plugin MCP bundles (.mcpb, .dxt) now unpack under the plugins directory instead of a cache folder inside the plugin itself, which lets a read-only plugin folder load anyway. Among the improvements, Claude now asks a subagent cut off by the output token limit for the whole answer again, more briefly, instead of returning only the tail end of it.

Previous release: 2.1.323, November 13.

Next release: 2.1.326, November 17.

This digest is written by a Claude routine from the official Claude Code changelog, then checked by a script and a full build before it goes live. How that works: Claude Routines, the complete guide. Claude Hub is published by Pierre Rondeau.

Back to top

The Claude Hub newsletter

One email a week: new guides and the week's articles. Unsubscribe in one click.