Release notes
Claude Code v2.1.326
What's changed
- Added support for turning on Code Mode while agent teams are enabled; if you already turned it on, sessions with teams on now start in Code Mode
- Added a startup warning when an
--allowedTools,--disallowedToolsor--toolsvalue has an entry that doesn't look like a complete rule - Added a message explaining why MCP servers stop loading when an administrator adds
managed-mcp.jsonduring a session - Added a row to
/statusthat says when your provider or an environment variable such asDISABLE_TELEMETRYturns features off - Added a note in
/pluginandclaude plugin listwhen a malformedplugin.jsonfield such asauthororhomepageis ignored - Added Ctrl+O to show hidden startup notices
- Added a hint in the empty prompt that says what to do after a request fails
- Added an
esc to stopfooter hint in a subagent's view where Esc would stop it - Added
OTEL_RESOURCE_INCLUDE_HOSTto includehost.nameandhost.idin OpenTelemetry resource attributes (off by default) - Added
overflowX="scroll"on a mod'sBox, andmaxLinesandwrap="clip"on itsText - Fixed
cpof a file being refused when only its source was covered by anEditdeny rule - Fixed Bash commands that delete or overwrite files (
find -delete,cat a > b,sort -o) being summed up in the transcript as a search or a read - Fixed a misleading "Dangerous rm operation" warning in the Bash permission prompt on some commands with no rm that Claude Code can't read reliably
- Fixed background sessions losing the LLM gateway your shell exported after a crash, after a reopen from another folder, or when the background service lacks it: they now stop before any model request
- Fixed the background service ending your own processes, such as an SSH login, when a process number on its list had been reused by another user's process
- Fixed rules added in
/permissionsor at a main-conversation tool prompt, and/add-dirfolders, looking saved when the settings file couldn't be written; the terminal now warns and names it - Fixed a failed MCP
headersHelper, or one not run in an untrusted folder, making other sessions start without that server, for most servers with no stored OAuth refresh token - Fixed managed settings with certain key names stopping Claude Code from starting or affecting other managed files
- Fixed settings files with values nested thousands of levels deep crashing Claude Code or applying only some of the time; values past 64 levels are now dropped with a warning
- Fixed a settings file saved with an error mid-session being skipped silently; a warning now names the file
- Fixed the subagent model set in managed settings not applying in Claude Desktop's Code tab; it now overrides your own, as in a terminal, unless those settings also pick a provider or gateway
- Fixed sandboxed commands failing to start on Linux when the home or config directory is reached through a symlink into
/netand sandbox settings deny reads of it - Fixed empty placeholder files, including
.git/config.lock, sometimes being left in the project on Linux when Claude Code was stopped during a sandboxed command - Fixed Up then Enter answering Yes at the folder trust prompt shown under an already trusted parent folder
- Fixed an extra Enter at the end of setup accepting the offer to make auto mode the default
- Fixed a message typed over the startup auto mode offer being lost, and its Enter accepting the offer
- Fixed a note typed on a permission prompt being sent to Claude after Tab had hidden it
- Fixed PreToolUse hooks in managed settings leaving no OpenTelemetry
tool_decisionevent orpermission_denialsentry when they refused a direct tool call - Fixed letters typed over
/sandboxor a delete question in/permissionsmoving the selection - Fixed resumed sessions losing recent turns after a crash when the previous turn ended with an empty reply
- Fixed resumed sessions losing earlier conversation history when Claude Code ran low on memory
- Fixed a re-sent file overwriting Claude's changed copy in Remote Control and cloud sessions on Linux with no feature flags loaded: the copy moves to a
.kept-folder, or the new file isn't saved - Fixed a background session being killed and its request lost when you opened, stopped or removed the older session whose conversation it had resumed
- Fixed
claude purgehiding its prompts when stdout is redirected, where one unseen Enter could delete a project's data; they now show on the terminal - Fixed the spend limit menu removing the monthly limit without asking when Backspace and Enter were pressed as it opened
- Fixed
/rewindrestoring only some files after running/branchtwice while a slow backup copy was still running - Fixed
/rewindsaying "No code changes" when a shell command changed files it can't restore; a turn whose changes weren't tracked now reads "Code changes unknown" - Fixed
/rewind: Esc now cancels its summary, its list shows more than one past prompt in fullscreen, and a long prompt no longer hides its warning about losing later file changes - Fixed Ctrl+C or Ctrl+D twice in
/skillsquitting Claude Code and dropping changes; it now saves and closes the panel - Fixed the usage limit menu erasing your draft and opening while you were typing
- Fixed pasted text and images being dropped when ↑ recalls a draft cleared with Esc Esc
- Fixed an edited typed answer to Claude's question sending the old text when you moved on without pressing Enter
- Fixed going back to a question you answered from its list putting the cursor on the first option, where Enter replaced your answer
- Fixed
/feedbackand/bugsending the report when you typed a space on the confirmation screen, and losing the typed report after Ctrl+O or Ctrl+Z - Fixed a prompt typed after
--add-dir,--allowedToolsor another list option being dropped without a message - Fixed
/plan <description>ignoring the description when plan mode was already on - Fixed valid PDFs being dropped from the conversation after the API rejected a different PDF read in the same batch
- Fixed a session ending after a single failed memory allocation while drawing the screen
- Fixed compaction on Bedrock, Vertex and Foundry, and with telemetry turned off, sometimes replying to one of your messages instead of summarizing, or leaving Claude's last reply out of the summary
- Fixed image-heavy sessions on Vertex AI getting stuck on a 400 error about the request size exceeding a 30 MB limit, instead of compacting and retrying
- Fixed an error when
max_tokensexceeded the model's limit: Claude Code now retries the request with the maximum the Anthropic API reports - Fixed
grepin the Bash tool silently skipping some text files - Fixed a crashed Node or Python hook showing only the first line of its stack trace; the error is now shown, and Ctrl+O shows up to 10,000 characters of the output
- Fixed
/goal clearor a new/goalnot sticking when typed while Stop hooks were running and background work was still in progress - Fixed the automatic session recap being sent after a reply billed to usage credits;
/recapstill works - Fixed auto mode staying on its local classifier, which counts toward usage, because of a stale saved value, such as one from an older Claude Code
- Fixed "Sign in with your Console account" in
/loginreplacing your Claude subscription login when the browser sign-in used your Claude plan instead of a Console organization - Fixed
/loginending on "Login successful" while an approvedANTHROPIC_API_KEYwas still used; it now says requests still use the key - Fixed "Not logged in" staying after turning on the API key in
/config; "Not logged in",/loginand/statusnow name an unusedANTHROPIC_API_KEY - Fixed
claude auth logout
…