# Claude Code 2.1.326 tightens Bash, PowerShell and sandbox permission checks

> The 2.1.326 changelog lists stricter checks on shell commands, sign-in files and sandbox writes, so some commands that ran before now ask first or are refused.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Safety & Security
- Published: 2026-11-16T00:00:00+00:00
- Updated: 2026-11-16T23:09:28.596177+00:00
- Web page: https://ai-news.ikangai.com/story/claude-code-2-1-326-tightens-bash-powershell-and-sandbox-permission-checks/
- Seen in: Claude Code changelog
- Change: breaking_change (Breaking change)
- Takes effect: 2026-11-16
- Applies to: Claude Code 2.1.326, Bash, PowerShell, macOS, Linux, WSL, .credentials.json

## What changed

Claude Code 2.1.326 now asks for approval or refuses more Bash and PowerShell commands, stops sandboxed commands writing to some sensitive home folders by default, and refuses file-tool writes to sign-in files such as .credentials.json.

Anthropic's Claude Code 2.1.326 changelog, dated November 16, 2026, tightens how the tool checks shell commands, sign-in files and sandbox writes. Some commands that ran before now ask for approval or are refused outright. The changelog says the Bash permission check now asks about more commands. The PowerShell tool also asks about more commands, refuses some malformed ones, and refuses some that define a function named like a built-in command, so Claude can rename it.

The changes fall into three groups. The first concerns what a sandboxed command may touch. On macOS, Linux and WSL, sandboxed commands no longer write to some sensitive home folders by default. Some of those can be allowed with sandbox.filesystem.allowWrite in user or managed settings. On Linux and WSL, the Bash sandbox now creates some missing --add-dir folders before each sandboxed command. The changelog warns that this can make commands that create those folders fail, skip them, or land inside them. The sandbox also sets aside unexpected entries in a repository's .git folder after a command. Claude's file tools now refuse writes to Claude Code's sign-in files, such as .credentials.json, and the Bash permission check asks before more commands reach those files.

The second group concerns auto mode, where Claude Code decides for itself whether a command should run. Auto mode now ignores some wildcard shell allow rules, such as ones that name no program or that start with $HOME. The safety check decides those commands instead. Wildcard rules whose program is a Windows backslash path can now be judged and blocked, while exact rules still allow the command. The changelog says Anthropic plans to restore rules that start with .\ but gives no date. A managed autoMode.environment list without "$defaults" now replaces every built-in entry, including in Claude Desktop and Agent SDK apps. The changelog advises adding "$defaults" or copying the sensitive-target entries.

The third group covers narrower cases. Read-only git commands in untrusted repositories now ask first, and some cp and mv commands ask for approval. Some tool calls in bypass permissions mode now ask, or are denied where no one can be asked. A hook that returns "decision": "block" now holds in more cases, so a hook that always prints one may start blocking calls. The changelog also says that a Bash permission check given very long values it cannot finish checking will ask about them. Where a deny rule may apply or no one can answer, it refuses them instead.

The changelog's own summary line for Bash says "some commands now ask first, or are refused where no one can answer," and it does not list which commands. Developers with wildcard shell allow rules should expect auto mode to ignore some of them: those that name no program or start with $HOME, since the safety check now decides those commands.

## Why it matters

Teams that run Claude Code unattended, in CI or as background agents, may find jobs that used to run now stopping for approval or being refused.

## What you can do

Test unattended and background Claude Code jobs against 2.1.326 before upgrading, and review allow rules and sandbox filesystem settings.

## Original source

- [Claude Code changelog - Claude Code Docs](https://code.claude.com/docs/en/changelog)
- [claude-code/CHANGELOG.md at main · anthropics/claude-code · GitHub](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Claude Code 2.1.326 tightens Bash, PowerShell and sandbox permission checks", 2026-11-16, https://ai-news.ikangai.com/story/claude-code-2-1-326-tightens-bash-powershell-and-sandbox-permission-checks/
