Claude Code v2.1.326: tighter command permission checks, sign-in file writes refused, Code Mode with agent teams#

Published by

Part of the Claude Code Version Tracker series. | Official Env Vars | Official Changelog

Claude Code 2.1.326 sends more Bash, PowerShell and Code Mode commands through a permission prompt, and refuses some where no one can answer. Its file tools refuse writes to sign-in files such as .credentials.json, and Code Mode can now run while agent teams are enabled. The 2.1.325 release, which sits between it and the last analyzed 2.1.324, fixed a security issue in how zstd-compressed responses are decoded.[1]

A security fix for zstd response decoding#

The 2.1.325 release fixed a security issue in how zstd-compressed responses are decoded.[1] That release falls between 2.1.326 and the last analyzed 2.1.324, so moving from 2.1.324 to 2.1.326 picks the fix up along with everything in the 2.1.326 notes.

More commands ask before they run#

In 2.1.326, Bash permission checks send some commands to a prompt first, or refuse them where no one can answer, and the same happens in Code Mode, where more sandboxed commands now ask or are refused.[1] The file tools refuse writes to Claude Code's own sign-in files, such as .credentials.json, and the Bash check asks before more commands reach those files.[1]

SurfaceChange in 2.1.326
BashSome commands now ask first, or are refused where no one can answer; some macOS commands that ran before now ask or are refused.
Code ModeMore sandboxed commands now ask or are refused.
PowerShellMore commands ask first, some are refused, and some malformed commands are denied; some ask even in bypass permissions mode.
Sign-in filesFile tools refuse writes to sign-in files such as .credentials.json; Bash asks before more commands reach them.
Bypass modeSome tool calls in bypass permissions mode now ask for approval, or are denied where no one can be asked.
cp and mvSome cp and mv commands now ask first.

Code Mode runs with agent teams#

2.1.326 adds support for turning on Code Mode while agent teams are enabled.[1] A session that already had Code Mode on now starts in Code Mode when teams are on.

Resumed sessions recover more of their history#

2.1.326 fixes resumed sessions losing recent turns after a crash when the previous turn ended with an empty reply, and losing earlier conversation history when Claude Code ran low on memory.[1] In Remote Control and cloud sessions on Linux, when a re-sent file would overwrite Claude's changed copy, the copy now moves to a .kept- folder, or the new file is not saved.[1]

New environment variable#

The 2.1.326 changelog adds OTEL_RESOURCE_INCLUDE_HOST.

VariableWhat It Does
OTEL_RESOURCE_INCLUDE_HOSTWhen set to true, adds host.name and host.id to the OpenTelemetry resource attributes. Off by default. Named in the 2.1.326 changelog.[1]

Even bypass mode now stops for sign-in files and some commands#

The permission changes in 2.1.326 move the default toward asking: a command that used to run can surface a prompt, and where no one is present to answer, it is refused instead. Bypass permissions mode, which skipped prompts, now asks for approval on some tool calls or denies them, and writes to sign-in files such as .credentials.json are refused there as well.[1] For an unattended run (the SDK, claude -p, a scheduled task), an outright refusal becomes the outcome where a prompt would otherwise wait with no one to clear it, so a job that reaches one of these commands can now stop at it.

This analysis is conducted for educational and research purposes under fair use principles. All trademarks and software referenced belong to their respective owners.

Sources#

  1. Claude Code Official Changelog, v2.1.325 and v2.1.326 release notes

Previous Claude Code analysis: v2.1.324 (November 15, 2026)

Next Claude Code analysis: v2.1.331 (November 24, 2026)

All 93 Claude Code analyses: Claude Code Version Tracker · Official Claude Code changelog

Get the weekly digest

New Claude Code, Codex, Gemini CLI and OpenCode guides and release analyses, once a week, plus occasional notes.

One email a week plus occasional notes. Confirm by email; unsubscribe from any issue. Privacy