Skip to content

claude-code

v2.1.214 Feature

This release adds 5 notable features for engineering teams evaluating rollout.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Affected surfaces

auth rbac

Summary

AI summary

Fixed multiple permission‑check bypasses and added several tooling improvements.

Changes in this release

Security High

Fixed a permission‑check bypass affecting commands run in Windows PowerShell 5.1 sessions.

Fixed a permission‑check bypass affecting commands run in Windows PowerShell 5.1 sessions.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Feature Low

Added the EndConversation tool to end sessions with abusive or jailbreak attempts, mirroring claude.ai behavior since 2025.

Added the EndConversation tool to end sessions with abusive or jailbreak attempts, mirroring claude.ai behavior since 2025.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Feature Low

Added a periodic progress heartbeat for long‑running tool calls that previously went silent.

Added a periodic progress heartbeat for long‑running tool calls that previously went silent.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Medium

Fixed Bash permission checks misjudging very long commands — now always prompt for >10,000 characters.

Fixed Bash permission checks misjudging very long commands — now always prompt for >10,000 characters.

Source: llm_adapter@2026-07-18

Confidence: high

Bugfix Medium

Fixed Bash permission checks treating zsh variable subscripts and modifiers in `[[ ]]` comparisons as inert text — now prompts for approval.

Fixed Bash permission checks treating zsh variable subscripts and modifiers in `[[ ]]` comparisons as inert text — now prompts for approval.

Source: llm_adapter@2026-07-18

Confidence: high

Bugfix Medium

Fixed Bash permission checks to no longer auto‑approve certain `help` and `man` commands that could run unsafe options, command substitutions, or backslash paths.

Fixed Bash permission checks to no longer auto‑approve certain `help` and `man` commands that could run unsafe options, command substitutions, or backslash paths.

Source: llm_adapter@2026-07-18

Confidence: high

Bugfix Medium

Fixed a crash when a GrowthBook feature evaluates to null, and fixed malformed flag payload from wiping cached feature flags.

Fixed a crash when a GrowthBook feature evaluates to null, and fixed malformed flag payload from wiping cached feature flags.

Source: llm_adapter@2026-07-18

Confidence: high

Bugfix Medium

Fixed permission prompts on remote sessions from proceeding before the local confirmation dialog completes.

Fixed permission prompts on remote sessions from proceeding before the local confirmation dialog completes.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Medium

Added permission prompts for `docker` commands (including Podman shim) carrying daemon‑redirect flags (`--url`, `--connection`, `--identity`) that previously ran without prompting.

Added permission prompts for `docker` commands (including Podman shim) carrying daemon‑redirect flags (`--url`, `--connection`, `--identity`) that previously ran without prompting.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Medium

Added an ISO `modified` timestamp to memory file frontmatter.

Added an ISO `modified` timestamp to memory file frontmatter.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Medium

Added `message.uuid`, `client_request_id`, and `tool_source` attributes to OpenTelemetry log events for correlation and provenance.

Added `message.uuid`, `client_request_id`, and `tool_source` attributes to OpenTelemetry log events for correlation and provenance.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Medium

Added `CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH` config to set the 60 KB truncation limit on OpenTelemetry content attributes.

Added `CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH` config to set the 60 KB truncation limit on OpenTelemetry content attributes.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Medium

Added reasoning effort to the `subagentStatusLine` payload so custom agent rows can render model and effort.

Added reasoning effort to the `subagentStatusLine` payload so custom agent rows can render model and effort.

Source: llm_adapter@2026-07-18

Confidence: low

Bugfix Low

Fixed single-segment `dir/**` allow rules from auto‑approving writes to nested directories anywhere in the tree.

Fixed single-segment `dir/**` allow rules from auto‑approving writes to nested directories anywhere in the tree.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed Bash permission checks to fail closed on file‑descriptor redirect forms parsed differently by bash.

Fixed Bash permission checks to fail closed on file‑descriptor redirect forms parsed differently by bash.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed Bash tool killing the Claude session when `pkill -f` pattern accidentally matched the CLI's own process (Linux).

Fixed Bash tool killing the Claude session when `pkill -f` pattern accidentally matched the CLI's own process (Linux).

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed unbounded memory growth when `--settings` points at a device file or multi‑GB file; oversized (>2 MiB) settings files now fail at startup with a clear error.

Fixed unbounded memory growth when `--settings` points at a device file or multi‑GB file; oversized (>2 MiB) settings files now fail at startup with a clear error.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed streaming turns failing with "Socket is closed" behind corporate proxies on Windows.

Fixed streaming turns failing with "Socket is closed" behind corporate proxies on Windows.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed stream‑json output truncation at exit for slow‑reading SDK/pipeline consumers; the exit drain now scales with queued bytes instead of a flat 2 s cap.

Fixed stream‑json output truncation at exit for slow‑reading SDK/pipeline consumers; the exit drain now scales with queued bytes instead of a flat 2 s cap.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed scheduled tasks refusing their own configured prompt as untrusted input — the fired prompt is now delivered as the session's assigned task.

Fixed scheduled tasks refusing their own configured prompt as untrusted input — the fired prompt is now delivered as the session's assigned task.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed PowerShell tool commands hanging until timeout when a child process waited on standard input (Windows).

Fixed PowerShell tool commands hanging until timeout when a child process waited on standard input (Windows).

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed Python scripts under the PowerShell tool crashing with UnicodeDecodeError when reading non‑UTF‑8 data from standard input (Windows).

Fixed Python scripts under the PowerShell tool crashing with UnicodeDecodeError when reading non‑UTF‑8 data from standard input (Windows).

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed Python scripts run via the PowerShell tool crashing with UnicodeEncodeError on non‑ASCII output, and PowerShell 7 error messages containing raw ANSI escape sequences (Windows).

Fixed Python scripts run via the PowerShell tool crashing with UnicodeEncodeError on non‑ASCII output, and PowerShell 7 error messages containing raw ANSI escape sequences (Windows).

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed the PowerShell tool reporting `where.exe`, `fc.exe`, and `diff.exe` as errors when they return a valid negative answer (Windows).

Fixed the PowerShell tool reporting `where.exe`, `fc.exe`, and `diff.exe` as errors when they return a valid negative answer (Windows).

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed `>` and `>>` under the PowerShell tool on Windows PowerShell 5.1 writing UTF‑16LE files that other tools couldn't read as UTF‑8.

Fixed `>` and `>>` under the PowerShell tool on Windows PowerShell 5.1 writing UTF‑16LE files that other tools couldn't read as UTF‑8.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed a displaced background daemon deleting its successor's control socket on shutdown, which made the next client kill the healthy replacement daemon.

Fixed a displaced background daemon deleting its successor's control socket on shutdown, which made the next client kill the healthy replacement daemon.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed background sessions parked with `←` or `/background` and left idle keeping the background daemon and a worker process alive indefinitely.

Fixed background sessions parked with `←` or `/background` and left idle keeping the background daemon and a worker process alive indefinitely.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed completed background sessions being impossible to remove via `claude rm` or the agent view once the background service had gone idle.

Fixed completed background sessions being impossible to remove via `claude rm` or the agent view once the background service had gone idle.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed background sessions dispatched from a non‑git folder being impossible to delete from the agents view.

Fixed background sessions dispatched from a non‑git folder being impossible to delete from the agents view.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Bugfix Low

Fixed reopening a stopped background session failing to restore its saved conversation when an unreadable folder exists in the session store.

Fixed reopening a stopped background session failing to restore its saved conversation when an unreadable folder exists in the session store.

Source: granite4.1:30b@2026-07-18-audit

Confidence: low

Full changelog

What's changed

  • Fixed single-segment dir/** allow rules like Edit(src/**) auto-approving writes to nested dir/ directories anywhere in the tree instead of only <cwd>/dir
  • Fixed a permission-check bypass affecting commands run in Windows PowerShell 5.1 sessions
  • Fixed Bash permission checks to fail closed on file-descriptor redirect forms that bash parses differently than the permission analyzer
  • Fixed Bash permission checks misjudging very long commands — commands over 10,000 characters now always prompt instead of running automatically
  • Fixed Bash permission checks treating zsh variable subscripts and modifiers in [[ ]] comparisons as inert text — these commands now prompt for approval
  • Fixed Bash permission checks to no longer auto-approve certain help and man commands that could run unsafe options, command substitutions, or backslash paths
  • Fixed permission prompts on remote sessions that could proceed before the local confirmation dialog
  • Added the EndConversation tool: Claude can end sessions with highly abusive users or jailbreak attempts, as on claude.ai since 2025 — see https://www.anthropic.com/research/end-subset-conversations
  • Added a periodic progress heartbeat for long-running tool calls that previously went silent
  • Added an ISO modified timestamp to memory file frontmatter
  • Added message.uuid, client_request_id, and tool_source attributes to OpenTelemetry log events for message-level correlation and tool provenance
  • Added CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH to configure the 60 KB truncation limit on OpenTelemetry content attributes
  • Added reasoning effort to the subagentStatusLine payload, so custom agent rows can render model and effort
  • Added permission prompts for docker commands (including the Podman docker shim) carrying daemon-redirect flags (--url, --connection, --identity, and Podman's remote mode) that previously ran without one
  • Fixed a crash when a GrowthBook feature evaluates to null, and a bug where a malformed flag payload could wipe the cached feature flags
  • Fixed Bash tool killing the Claude session when a pkill -f pattern accidentally matched the CLI's own process (Linux)
  • Fixed unbounded memory growth when --settings points at a device file or multi-GB file; oversized (>2 MiB) settings files now fail at startup with a clear error
  • Fixed streaming turns failing with "Socket is closed" behind corporate proxies on Windows
  • Fixed stream-json output truncation at exit for slow-reading SDK/pipeline consumers; the exit drain now scales with queued bytes instead of a flat 2s cap
  • Fixed scheduled tasks refusing their own configured prompt as untrusted input — the fired prompt is now delivered as the session's assigned task
  • Fixed PowerShell tool commands hanging until timeout when a child process waited on standard input (Windows)
  • Fixed Python scripts under the PowerShell tool crashing with UnicodeDecodeError when reading non-UTF-8 data from standard input (Windows)
  • Fixed Python scripts run via the PowerShell tool crashing with UnicodeEncodeError on non-ASCII output, and PowerShell 7 error messages containing raw ANSI escape sequences (Windows)
  • Fixed the PowerShell tool reporting where.exe, fc.exe, and diff.exe as errors when they return a valid negative answer (Windows)
  • Fixed > and >> under the PowerShell tool on Windows PowerShell 5.1 writing UTF-16LE files that other tools couldn't read as UTF-8
  • Fixed a displaced background daemon deleting its successor's control socket on shutdown, which made the next client kill the healthy replacement daemon
  • Fixed background sessions parked with or /background and left idle keeping the background daemon and a worker process alive indefinitely
  • Fixed completed background sessions being impossible to remove via claude rm or the agent view once the background service had gone idle
  • Fixed background sessions dispatched from a non-git folder being impossible to delete from the agents view
  • Fixed reopening a stopped background session failing to restore its saved conversation when an unreadable folder exists in the session store
  • Fixed the Remote Control "session ready" push notification firing for sessions where Remote Control was not explicitly enabled
  • Fixed /install-github-app and the /mcp settings menu being blocked in agent-view sessions — they're now refused only in background sessions with no terminal attached
  • Fixed plugins enabled via the --settings CLI flag not loading (regression since v2.1.181)
  • Fixed feature flags going stale in long-running sessions after the OAuth token rotates
  • Fixed /ultrareview refusing to run in repos with no merge base — it now offers to review all tracked files
  • Fixed claude update and claude doctor hanging silently, and the /status System diagnostics section going blank, when a shell-config path is a directory
  • Fixed memory frontmatter values being silently truncated at an inline # when memory files are saved
  • Fixed session cost and token telemetry double-counting on streams that emit multiple cumulative message_delta frames
  • Fixed a spurious "check your network" warning that appeared while the advisor was thinking
  • Fixed hooks with exit code 2 not blocking as documented when the hook's stdout JSON fails schema validation
  • Fixed OTel log events emitted outside the turn's async context missing the interaction span's trace context
  • Fixed MCP transient errors during prompts/resources refresh clearing the server's slash commands and resources
  • Improved the claude rc workspace-trust error in the home directory to say trust there is never saved and to suggest running from a project directory
  • Changed single-segment dir/** hook if: conditions to match only <cwd>/dir; write **/dir/** for any-depth matching. deny/ask permission rules keep their any-depth match.
  • Changed file commands using -m/--magic-file or -f/--files-from to require permission instead of being auto-allowed as read-only
  • Changed keep-alive connection pooling to disable after a stale-connection error, so retries open a fresh socket
  • Changed SessionStart hooks to report source "fork" when a session begins as a fork instead of "resume"

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track claude-code

Get notified when new releases ship.

Sign up free

About claude-code

All releases →

Related context

Earlier breaking changes

  • v2.1.215 Claude no longer automatically runs /verify and /code-review skills
  • v2.1.160 Renames dynamic‑workflow trigger keyword from `workflow` to `ultracode`; `workflow` no longer triggers a run
  • v2.1.160 Deprecates and removes the `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` environment variable; it is now a no‑op
  • v2.1.147 Renames /simplify to /code-review; removes cleanup-and-fix behavior.

Beta — feedback welcome: [email protected]