Skip to content

Claude Code v2.1.327

Released · Anthropic

Security fixChanges hooks, MCP server config, permission rules, sandbox settings, settings files, skills and plugins

What the release notes say

What's changed

  • Added a confirmation before /install-github-app changes a repository
  • Added claude mcp add-json <name> - to read the server's JSON from stdin, so tokens can stay off the command line; not available inside a Claude Code session
  • Added a line when a resumed session's earlier messages can't be loaded
  • Added a list in /status of broken agent, skill, command and output style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match
  • Added a note in /config when other settings override a row
  • Added x-claude-code-managed-settings-checksum to the gateway hint headers; sent where managed settings set CLAUDE_CODE_GATEWAY_HINT_HEADERS=1, including where they already do
  • Added support for naming a session's billing group with the attributionProject setting, for Claude apps gateways that set admin.billing_group_tag
  • Added /tui classic as the name for the non-fullscreen renderer; /tui default still works
  • Remote Control: Fixed stopping the server in worktree mode deleting a running session's git-ignored files, such as .env
  • Fixed self-hosted runners with --use-anthropic-git-proxy deleting a non-empty directory named by GIT_CONFIG_GLOBAL at startup: the runner now keeps it, ignores the variable and warns
  • Fixed claude mcp add and claude mcp remove with project scope deleting other top-level keys from .mcp.json, such as $schema or another tool's servers
  • Fixed /export overwriting an existing file without asking: the dialog now asks, and /export <name> keeps the file and says to run /export
  • Fixed a command you had allowed still running after you pressed Stop, when the approval arrived after a restart, in cloud and self-hosted runner sessions with no feature flags loaded
  • Fixed Enter closing /teleport's load error screen
  • Fixed a click followed by Enter in /plugin installing or disabling a plugin
  • Fixed a half-typed ! command running on an extra Enter after the usage limit menu
  • Fixed some --disallowedTools rules with parentheses in their content
  • Fixed auto mode ignoring some wildcard PowerShell allow rules that name a script with ., such as PowerShell(.\scripts\build.ps1 *)
  • Fixed a running Code Mode script in auto mode getting permission prompts and denials once Claude started a second script that auto mode also allowed
  • Changed some pre-started background sessions to be discarded after an account change
  • Changed a workflow paused at a usage limit in the terminal to stay paused after a login, until the earlier login returns or you type a prompt
  • Fixed a nested claude with its own token being refused by forceLoginOrgUUID: commands that don't get the session's token no longer get its CLAUDE_CODE_OAUTH_SCOPES; set it on any that need it
  • Fixed headless sessions losing stored messages on resume when a message was sent again with the same UUID after the process was killed
  • Fixed cases where a session resumed after an empty reply or a killed command lost an answer, or brought back a rewound prompt, after another crash or a move to the background
  • Fixed a remote session forgetting messages sent after Stop was pressed during a restart, if Claude Code then crashed
  • Fixed tasks created after /clear being lost, and cleared tasks coming back, when a cloud or self-hosted runner session with no feature flags loaded resumed later
  • Fixed a compaction right after a reply cut at the output token limit losing that reply's tool call and its result
  • Fixed a settings change from /config and similar commands failing to save with no warning; a line under the prompt now says so
  • Fixed /rewind closing without a word when some files could not be restored
  • Fixed pasted images being dropped when the prompt starts with a file path such as /tmp/a.txt
  • Fixed agents passed with --agents being lost once plugins loaded or reloaded
  • Fixed a plugin's agent being dropped when resuming a session from the --resume picker
  • Fixed Claude Code refusing to start when https_proxy or HTTPS_PROXY is a bare host:port and neither its input nor its output is a terminal (the desktop app, an SDK, cron)
  • Fixed Claude Code on Linux sometimes returning to the shell while restarting itself at startup, such as after the first sign-in to a Claude apps gateway or when turning on Code Mode
  • Fixed claude -p hanging before its first request when the fetch of a model's settings stalled, such as at a proxy; it now goes on without them after 10 seconds
  • Fixed the screen staying blank or frozen after a brief out-of-memory error
  • Fixed a rare display fault that could freeze the screen or end the session
  • Fixed cloud sessions breaking when a program left thousands of connections open to the session's network proxy
  • Fixed a turn hanging when a mod's $.model.complete or $.model.classify call met a usage limit: the call now gets the API's error at once; mods should handle that error
  • Fixed stalls on a compaction reply with thousands of unclosed tags and on some very long WebFetch URLs; WebFetch now refuses a URL over 2,000 characters before any permission prompt
  • Fixed a message with thousands of @ mentions stalling before Claude replies; only the first 100 mentions are now looked up as files
  • Fixed the prompt freezing after rejecting a write to a very large file; a rejected write now shows a short preview
  • Fixed a crash when a burst of keys reached the search box in /plugin
  • Fixed a false crash report and exit code when a suspended session resumes, or at exit, where a Linux security policy blocks a process from signalling itself
  • Fixed remote MCP servers staying disconnected after a longer outage such as a VPN drop: most servers on other machines reached by hostname over https are now retried in the background for about a day