Release notes
Claude Code v2.1.327
What's changed
- Added a confirmation before
/install-github-appchanges 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
/statusof 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
/configwhen other settings override a row - Added
x-claude-code-managed-settings-checksumto the gateway hint headers; sent where managed settings setCLAUDE_CODE_GATEWAY_HINT_HEADERS=1, including where they already do - Added support for naming a session's billing group with the
attributionProjectsetting, for Claude apps gateways that setadmin.billing_group_tag - Added
/tui classicas the name for the non-fullscreen renderer;/tui defaultstill 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-proxydeleting a non-empty directory named byGIT_CONFIG_GLOBALat startup: the runner now keeps it, ignores the variable and warns - Fixed
claude mcp addandclaude mcp removewith project scope deleting other top-level keys from.mcp.json, such as$schemaor another tool'sservers - Fixed
/exportoverwriting 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
/plugininstalling or disabling a plugin - Fixed a half-typed
!command running on an extra Enter after the usage limit menu - Fixed some
--disallowedToolsrules with parentheses in their content - Fixed auto mode ignoring some wildcard PowerShell allow rules that name a script with
.\, such asPowerShell(.\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
claudewith its own token being refused byforceLoginOrgUUID: commands that don't get the session's token no longer get itsCLAUDE_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
/clearbeing 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
/configand similar commands failing to save with no warning; a line under the prompt now says so - Fixed
/rewindclosing 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
--agentsbeing lost once plugins loaded or reloaded - Fixed a plugin's agent being dropped when resuming a session from the
--resumepicker - Fixed Claude Code refusing to start when
https_proxyorHTTPS_PROXYis a barehost:portand 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 -phanging 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.completeor$.model.classifycall 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
- Fixed Edit refusing with "File has not been read yet" after a compaction on unchanged files outside the project that Claude had already read in full
- Fixed Grep repeating or skipping results when paging with
head_limitandoffset; content and count results are now sorted by file path - Fixed Read failing on Jupyter notebooks that contain an output of an unknown type
- Fixed NotebookEdit removing the notebook file's final newline
- Fixed the Read tool reporting 512KB instead of the real size when a file of 10 MB or more is too large to read at once
- Fixed the Bash tool's diff of changed files not naming files that are binary, too large or too many to show
- Fixed artifact publishes failing with "the source file changed between approval and publish" when a synced or remote-backed folder had only changed the file's timestamp
- Fixed a new artifact that you approved being refused in a cloud scheduled task's session, in organizations that require approval of each new artifact
- Fixed a new artifact being refused after an app built on the Agent SDK approved it, in organizations that require approval of each new artifact
- Fixed
/artifactsshowing part of your list, or "No artifacts yet", when a request for more of the list failed: it now tries again, then warns if it can't load the whole list - Fixed in-process agent teammates on a different model from the lead compacting at the lead's context limit and on the wrong model; they now use their own limit and model, at that model's rate
- Fixed a finished subagent resuming on the model and effort of a sibling subagent that messaged it
- Fixed the main conversation not being told a background agent had finished when the subagent that started it ended by itself without reading the result, outside auto mode
- Fixed Claude reporting a background agent as still running when it had waited 30 seconds or more on a permission prompt in the desktop app, on the web and in the SDK
- Fixed Claude not being told in auto mode when a background agent's reply to a follow-up message was dropped, and reduced repeat wake-ups there from agents waiting on background commands
…