Claude Code CLI 2.1.333 changelog:
New features:
• Added REVIEW.md support to /code-review: local reviews now follow the root REVIEW.md on your repository's default branch
• Added the ability for Claude to stop one running agent of a workflow while the others continue
• Gateway: Added error.details.error_code: spend_limit_reached to the 429 for a user's reached spend limit
• Added CLAUDE_CODE_DISABLE_POWERSHELL_PARSER_OVERLAP=1 to stop a slow PowerShell parser before its retry starts, so the two don't run together
• Added a notice when a held message from another session expires unanswered
• Added a Runs list to claude plugin validate for the commands and servers that a plugin's or marketplace's own files name
• Added a Built-in tab to /plugin that lists built-in plugins by group with plain names, and shows the ones your organization's settings lock on or off
• Added the ability for any mod to send its own records to your OpenTelemetry collector, as claude_code.plugin_event
• Added the names a mod registers to claude plugin validate --json, with a mark on calls that may register other names
• Added consent to $.prompt.submit and next.origin.isByPerson for mods: a prompt sent in answer to your press, typed command or answer counts as a turn you started
• Added wait: false to $.prompt.submit for mods: the prompt enters the running turn at its next step instead of waiting for the turn to end
• Added CommandRow so mods can draw a command's slash menu label
• Added session.end for mods when Claude Code restarts itself (as on /tui) and, with the new reason unload, when the mod's plugin is turned off or uninstalled
• Added lasts: "transcript" to $.state.set, so a mod's value comes back on resume and fork, follows a rewind and survives compaction
• Added drawing for the rows a mod names: the terminal raises ui.render at the row's name and shows one dim line of its text where no mod draws it
• Added name and data to the rows a mod appends with $.session.append, read back with $.session.messages({ name }); a named row may have no content
• Added $.ui.render so a mod can draw a component that other mods wrap, restyle or replace
• Added terminal and sandbox options to $.process for mods
• Added $.http.stream for mods to read a response body as it arrives, { base64 } request bodies on $.http.fetch, and timeoutMs (up to ten minutes) and redirect: "manual" on $.http.fetch
• Added dispose() to what a mod's $.command.register, $.tool.register and $.agent.register calls return
• Added reading another saved session of the project with $.session.messages({ id }), for mods in terminal sessions
• Added $.session.messages({ id }) for mods to read the running session's rows since its last compaction, each with a handle
• Added an Ask render site so a mod can explain a tool's permission prompt by drawing above it, and tool_use_id in the AskUserQuestion render props
• Added $.session.load for mods to resume, clear, branch or rewind the conversation between turns
• Added a session.load event for /resume, /clear, /branch and /rewind that a mod can veto; hooks on * or session.* now hear it
• Added a session.state event for mods (busy, waiting, idle), with state on $.session.info(); existing * and session.* hooks start hearing it
• Added punctuation characters such as "/" or "?" as a mod Button's hotkey
• Added the ui.key mod event: in the terminal, a hook that names it can pass on or take a key pressed at the prompt, in a pane or above the prompt, or swap it for an editing or moving action
• Added compare-and-set for files in mods: $.fs.stat returns a version, and $.fs.write and $.fs.remove accept ifVersion
• Added $.fs.remove, $.fs.rename, $.fs.copy and byte writes on $.fs.write for mods
• Added compare-and-set to a mod's $.store: read a key with its version, then set or delete with ifVersion to act only while the key stands at that version
• Added traits for tools a mod registers with $.tool.register: read-only, concurrency-safe, destructive, runs code, a search hint, a when-to-use line and a display title
• Added content and isEnd to a mod's
https://tool.run/ answer, to give Claude text and image blocks for a tool call and to end the turn after it
• Added a Placeholder render site so a mod can set the empty prompt's dim example line, and an "Example prompts" switch in /plugin to turn the "Try …" examples off
• Added promptCache to a mod's $.session.usage() and session.measure: whether the prompt cache is warm, when it expires and why it last missed
• Added $.model.stream for mods: a model completion read piece by piece as it is written
• Added schema and thinking to a mod's $.model.complete call, for JSON replies and extended thinking; results now name the model that answered
• Added $.session.waitUntil for mods, so claude -p and SDK runs wait up to 30 seconds at exit for work a mod registers
• Added pluginId, and isOfficial where it applies, to next.origin on a mod's own $ calls; mod tests that compare that origin exactly need the new fields
• Added read-only $.state values for mods under plugin: "engine": the permission mode and rules, MCP servers and terminal focus
• Added a read-only $.state value for mods under plugin: "engine": the loaded plugins
• Added place, key and priority options to $.ui.toast, so a mod can keep, replace and remove one line on the notification bar
• Added wait to $.ui.open for mods: the call resolves when the pane closes, with the value passed to $.ui.close
• Added streaming methods to the nouns mods provide: write one as async function*; a second parameter with no default is handed { signal }
• Added agentId and tool_use_id to next.origin on a mod noun's events, so a hook can tell which subagent or tool call asked
• Added a Used by row to /plugin, listing the mods that call a noun a mod provides
Fixes:
• Fixed claude -p on macOS and Linux losing the end of a successful run's piped output when the reader lagged; it now waits up to 30 seconds and warns if any is unread
• Fixed the first prompt, subagents and -p waiting up to 10 minutes when git status is very slow or stalls; Claude now continues after 30 seconds
• Fixed reading a larger file, large MCP results, @ mentions and /context hanging for 10 minutes or more when the token count request got no answer
• Fixed tool calls to HTTP MCP servers that offer no GET stream hanging for up to 5 minutes after the server or a proxy closed the response stream without an answer
• Fixed memory growing by gigabytes and CPU staying at 100% on Linux while a build or other command creates and removes many files in the repository
• Fixed background sessions failing with a model error after /background or a wake, when --model default or a blocked --model sonnet had resolved to a model the account lacks
• Fixed a turn hanging on a plugin's language server that exits or stays silent while starting: an exit now fails the call at once, and a silent server's call gives up after 60 seconds by default
• Fixed ! commands in cloud and headless sessions hanging for ten minutes when the command reads standard input
• Fixed an asyncRewake hook that keeps exiting quickly with code 2 waking Claude in an endless loop; wakes now stop after 8 in a row (CLAUDE_CODE_STOP_HOOK_BLOCK_CAP changes it)
• Fixed Claude Code exiting with no message in fullscreen mode, and background sessions showing no reason, when sandbox.failIfUnavailable is set and the sandbox can't start
• Fixed a stopped reply sometimes running again when a remote session restarted with a background notice queued after the Stop, and Claude not seeing a message you stopped during a restart
• Fixed pull requests opened with gh api being left out of the pull request count and session link when the command was multi-line, quoted its path, or used --input
• Fixed subagents reporting the main conversation's effort level to hooks and shell commands after a model fallback
• Fixed a subagent's own MCP server getting the tool descriptions of another MCP server with the same name
• Fixed a renewed or newly added mTLS client certificate not reaching model requests when a server answers with an HTTP 400 certificate page; certificate errors now say what to check
• Fixed /model and SDK model switches failing at the first "overloaded" answer from the API: the model check now retries for up to 2.5 seconds
• Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN sending Claude a request that nobody asked for in a session with no stored prompt or reply
• Fixed an awsAuthRefresh or gcpAuthRefresh login that was stopped at its time limit, on cancel or at exit sometimes being treated as a completed sign-in
• Fixed /rewind deleting a file that was missing when an edit of it failed and was later put back
• Fixed a Code tab session going back to a worktree it had been moved out of after a restart
• Fixed SessionEnd hooks of plugins loaded from a zip file failing at exit with "Plugin directory does not exist"
• Fixed a queued message being sent without the interrupted tool's result when pressing Esc while a tool was running
• Fixed plugin marketplace adds and updates failing, removing the marketplace or leaving it incomplete when two sessions download it at once
• Fixed the prompt staying on "Pasting…" and ignoring Enter on WSL and Windows when the clipboard never answered
• Windows: Fixed an idle session using a full CPU core after a folder it watched was deleted
• Windows: Fixed tool calls being refused at the root of some network and virtual drives
• Fixed Claude Desktop's read-only side chats (for example in WSL sessions) ignoring the language setting
• Fixed lines going missing from terminal scrollback outside fullscreen mode in long sessions, and above a tall permission prompt on Windows or with reduced motion
• Fixed subagents in Claude Desktop's Code tab being offered task list and wrap-up tools that the app refuses
• Fixed @-mentions in the desktop app's Code tab attaching the wrong file, or none, after Claude changed folder in a command
• Fixed the plan going missing after Rewind in plan mode in the desktop app's Code tab
• Fixed FileChanged hooks firing for only one file when several watched files in the same folder did not exist at startup
• Fixed slow typing in the agents view when listed sessions were started with very long prompts
• Fixed high CPU use from file watching: an idle session when files could not be looked at, and FileChanged hooks on a folder created after startup or a missing path in a busy folder
• Fixed voice dictation in the agents view redrawing the input line continuously in screen reader mode
• Fixed high CPU use when a --plugin-dir mod's folder held many build files that aren't code or JSON
• Fixed memory growing without bound while a hook in claude -p, an MCP server or a language server keeps printing large output or notifications without pause
• Fixed agent team inboxes that can't be read or written: messages being lost during a write, and a teammate repeating turns without end
• Fixed claude mcp add-from-claude-desktop on WSL finding no servers, or outdated ones, with the packaged Claude Desktop for Windows
• Fixed a workflow script that logs in a tight loop using gigabytes of memory
• Fixed memory growing by gigabytes in long sessions with OpenTelemetry content logging on, most of all while the collector is slow or down
• Fixed memory growth and a freeze at the next turn when a language server republishes diagnostics while the session is idle or running a long command
• Fixed a freeze and high memory use when opening the transcript with Ctrl+O after edits to a file with thousands of IDE diagnostics
• Fixed dictation sometimes not starting, sending the prompt or losing your words when the CLI paused briefly or Space was pressed during transcription
• Fixed tap-mode and auto-submit dictation in ! mode running your words as a shell command as soon as they were transcribed
• Fixed the model retirement warning being cut off in narrow terminals, and the top of the fullscreen view staying blank after repeated Ctrl+O on tall terminals
• Fixed claude remote-control crashing and leaving the computer shown as online when its terminal or output pipe went away while it ran in the background
• Fixed cloud sessions losing their last status and one-line summary after /compact
• Fixed rules, skills, commands, agents and output styles with Windows line endings ignoring their header (paths, name) when it held an unquoted colon or glob (anthropics/claude-code#80890)
• Fixed Edit silently dropping the last byte of a UTF-16LE file with an odd byte count: Edit and NotebookEdit now refuse such a file (anthropics/claude-code#105747)
• Fixed the spinner staying on "Running SessionStart hooks…" until the turn ended after a mod's session.compact hook replaced an auto-compaction (anthropics/claude-code#106462)
• Fixed a teammate's view going blank while it ran a long command or MCP call
• Fixed deleted tasks coming back when many linked tasks were deleted at once
• Fixed a remote MCP tool running twice when you move a session to the background while a background subagent waits for its task, on servers without custom headers
• Fixed the desktop app and other SDK hosts not being told when some "Always allow" rules could not be saved to their settings file
• Fixed macOS asking to find devices on local networks when a Claude Desktop session on Google Cloud's Agent Platform has no credentials; a server named in GCE_METADATA_HOST is still used
• Fixed Claude reporting that a read-only MCP tool returned nothing when its call was skipped after a late permission answer in cloud sessions
• Fixed high memory use when several very large images were read at the same time
• Fixed most prompts typed while Claude was working being lost from history when Claude Code exited before sending them
• Fixed messaging a running workflow agent starting a second copy of it outside the workflow
• Windows: Fixed /desktop and claude --desktop sometimes starting Claude Desktop without showing its window
• Fixed SendMessage misleading Claude about agent teams: a busy teammate or lead reads a message when its turn ends, and a lead with no teammate needs it sent to main
• Fixed some cloud sessions being listed as offline Remote Control sessions when messaging between sessions
• Fixed some messages sent to a cloud or Remote Control session failing during a short service pause: Claude Code now waits up to a minute and tries again
• Fixed streamed responses ending in a decompression error behind some proxies
• Fixed a crash on Windows on machines running some security software
• Fixed requests on Google Cloud's Agent Platform hanging when a Google Cloud credential's executable is missing or is killed
• Fixed Claude asking more questions, like which design system to use, after you answered questions for a new artifact
• Fixed cloud sessions warning that a plugin marketplace couldn't be fetched when no plugin you have enabled from it is missing
• Fixed a freeze when Grep matched many files while Read deny rules were set
• Fixed a freeze when a gateway's 400 error about an image or PDF quoted the whole request back
• Fixed the desktop app's Code tab looking idle after /goal in local, SSH and WSL sessions
• Fixed Claude Desktop's Code tab showing no notice until a reload when a background command or agent finished while Claude was idle
• Fixed git summaries naming a flag value or punctuation as the merged branch, and reporting a pull request as merged or closed when it already was
• Fixed background requests such as prompt suggestions, /btw and /recap sometimes consulting the advisor on Opus 4.8, Sonnet 5.5 and later models
• Fixed cloud Cowork sessions reporting a saved file when Write, Edit or NotebookEdit named a connected folder by its mount path
• Fixed Bash edit diffs on Linux missing changes in a folder that a command removed and re-created
• Fixed /autofix-pr messages that said to stop a cloud session: they now say to archive it, and Esc while one starts says it may have started anyway
• Fixed the terminal freezing on Linux when a command removed, moved or created many folders in a large git repository
• Fixed a doubled pause after sandboxed commands on Linux in large git repositories
• Fixed /reload-plugins, plugin marketplace add and most background updates installing only one of a plugin's optional dependencies in the first session on a new machine
• Fixed a plugin skill name running a different skill from one session to the next when two skill folders get the same name, and added a /plugin warning that names the folders
• Fixed tool descriptions sent to the model (like Bash's auto mode wording) staying stale after a mode or settings change; they now refresh when the main conversation compacts and on /clear
• Fixed high memory use in Code Mode when its code made many calls with large MCP results or command output, while it ran and after it ended
• Fixed internal text showing in apps after a restart with several background commands, after a failed turn, and when a skill starts over Remote Control
• Fixed Bedrock sessions signed in with aws login running awsAuthRefresh again or reporting an expired session after a token refresh
• Fixed a bare @ hiding file suggestions after /code-review or another named subagent had run; type a first letter to complete a subagent's name
• Fixed ctrl+r history search missing text with decomposed accents, kana or Hangul, such as macOS file names
• Fixed a crash in fullscreen mode when many long tool results collapsed at once, such as after turning verbose output off
• Fixed ctrl+x tab switching to a hidden panel instead of focusing the one on screen when several panels are open
• Fixed claude remote-control showing nothing in its terminal when a session holds, releases or drops a message from another session or a script
• Fixed an SDK host's settings save overwriting a fresh edit of the same settings file when the host's own ConfigChange hook allowed that edit
• Fixed high CPU use in idle sessions when a settings file links into a very large, busy folder, such as /nix/store under Nix or home-manager
• Fixed a shell stuck in your start-up files staying behind on macOS and Linux after Claude Code exited, often on a full CPU core
• Fixed idle background sessions woken by a finished task never being retired, which left their processes running for days
• Fixed claude remote-control writing its whole status block every second to a log file or the systemd journal when nothing had changed
• Fixed a crash or freeze when a mod drew a Code block in a row beside long text or another Code block
• Fixed flashes when a mod draws and answers in time (100 ms; 16 ms for prompt text): blank rows, spinner or turn summary, a finished tool row shown as running, and prompt text shown without its colors
• Fixed a $BROWSER that stays in the foreground being closed after ten minutes or when Claude Code exits
• Fixed a mod's CodeBlock drawing being lost to scrollback, or a sent prompt staying hidden, when a reply has more blocks after the code fence
• Fixed cwd on a mod's $.agent.spawn being ignored: the subagent now runs in that folder, or the spawn is refused with a reason
Improvements:
• Improved how long Bash commands wait for the Bash edit diff in very large git repositories; after 8 failed tries with no quick success it stops trying there for the session
• Improved the error when macOS refuses to start Claude Code's sandbox with sandbox_apply: Operation not permitted: it now names the likely cause, another sandbox
• Improved memory use in terminal sessions, in sessions that load a mod, and in /usage on machines with many recent sessions
• Improved showing very long diffs in screen reader mode and with syntax highlighting off, which could freeze for seconds and use a lot of memory
• Windows: Improved the wait before a PowerShell command runs on slow machines, and how fast most command hooks start under Git Bash
• Improved input responsiveness during tool calls in long sessions with many hooks configured
• Windows: Improved the speed of image paste
• Improved background session start-up failures: daemon.log now shows the start of the error on macOS and Linux, and a macOS folder refusal points to Privacy & Security
• Improved how fast keys, Esc and Ctrl+C respond on slow disks while a Bash command that writes many files is checked for permission, in auto mode too
• Improved the speed of computing file diffs, most of all for large rewrites
• Improved recovery when the API refuses images for their size and lists them: only those images are removed, and they stay removed on later turns
• Windows: Improved adding and updating git plugin marketplaces: they now retry when another program is using the freshly downloaded files
• Improved Artifact tool asset uploads to accept files of up to 32 MiB, up from 20 MiB
• Improved the Amazon Bedrock "model identifier is invalid" error: when Claude Code can't confirm a region prefix such as eu., it now says so and how to fix it
• Improved claude plugin validate to list the names a mod spells at its $.command.register, $.tool.register and $.agent.register calls
• Improved /diff to say when its ask button doesn't attach a file
• Improved speed with mods loaded: a hook whose matcher doesn't match no longer slows down the calls, rows and requests it doesn't apply to
Other changes:
• Self-hosted runner: Added a one-time notice to a subagent resumed by a new Claude Code process, on any runner, that earlier unpushed file changes may be gone
• Remote Control: Fixed high CPU use when the event stream kept rejecting fresh credentials, and a Stop from another device applying a second time after a running session reconnected
• Self-hosted runner: Fixed git fetch and git push in a long-running process failing after a session token refresh; a wrapper must expose the token file's folder, not a copy or single-file mount
…plus 101 more changes in the full changelog.
Source:
https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21333