Release notes
Claude Code v2.1.334
What's changed
- Added a search box to
/modelwhen the list has more than 25 models, matching names and model IDs; press ↓ forsand number keys (anthropics/claude-code#99239) (anthropics/claude-code#107237) - Windows: Added
/desktopandclaude --desktopon Arm computers - Added an Auto-compact window row to
/configto see and change the size that/autocompactsets - Self-hosted runner: Added
--health-host 127.0.0.1to the orchestrator, for its health and metrics pages - Added
placement: "full"andClientautoFocusso a mod's pane can fill the terminal in fullscreen mode until you press Esc, with itsClienttaking keys from the start - Added
cacheWrite5m,cacheWrite1hand, for Haiku 5.5,longPrompttomodelPricing, andcache_write_5m,cache_write_1h,long_promptto gatewaypricing.overrides; old keys still work - Added folder-level REVIEW.md support to
/code-review: local reviews also follow REVIEW.md files in folders above a committed change - Gateway: Added
claude gateway --config <file> --check configto check a config file without starting, and a start now reports a bad managed policy before it connects to Postgres - Fixed requests failing with thinking turned off on models that don't accept turning it off: Claude Code now resends without that setting, so the model may think on those requests
- Fixed sessions with an mTLS client certificate switching to expired or unusable certificate files on disk after a single temporary HTTP 400 certificate error
- Fixed worktrees starting from the wrong branch or local HEAD after Claude moved into another repository, and with
--worktreein some bare repositories whose default branch isn'tmain - Fixed resuming an unchanged worktree dropping an unpushed commit that only its branch still had
- Fixed a plugin's SessionStart hook being skipped in terminal and background sessions when the plugin finished loading after the session started; a mod on that event can now hear it twice
- Fixed plugins enabled through
--settingsor user settings not loading on the second start of a new machine, including resumed and background sessions - Fixed sessions stuck behind a gateway that rewrites API errors: an unknown 400 or 422 is silently resent, then without earlier thinking;
CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=1turns it off - Fixed needless auto-compaction, or a false "Prompt is too long" error, after a response hit the output token limit before it wrote any text
- Fixed a session failing on every request after Claude called a tool with an input that is not an object
- Fixed most cases of Claude Code exiting when a session holds a message it can't display: that message now shows a placeholder
- Fixed
/contextdrawing the compact buffer as used space when auto-compact is off - Fixed
/ideand auto-connect not finding the editor on Linux hosts with nopsinstalled - Fixed the computer use permissions panel: it now updates as you grant each permission, names your terminal, and opens one window for Accessibility
- Fixed Claude asking which design system to use for every deck or design after you turned your organization's default design system off for yourself
- macOS: Fixed
gitfailing certificate checks in sandboxed commands when a corporate CA is trusted through the keychain orNODE_EXTRA_CA_CERTS - Fixed /compact and auto-compact sometimes keeping the model's draft notes in front of the conversation summary
- Self-hosted runner: Fixed a runner or orchestrator hanging forever on a call that never finishes, and a stopped runner staying alive: each call now ends after 60 seconds by default
- Fixed
prompt.attachmenthooks not being asked again on resume after their plugin was updated - Fixed a failing telemetry collector or signal on the Claude apps gateway dropping exports to other collectors and signals and repeatedly delaying model requests
- Fixed
claude plugin updatenot saying that a plugin's npm or bun packages could not be installed when the plugin is a folder of its marketplace's repository - Fixed OTLP/HTTP exports in Claude Desktop sessions still sending an expired sign-in token after the token was renewed
- Fixed
/design-syncshowing no component previews for Storybooks that use CSF factories (preview.meta,meta.story) - Remote Control: Fixed it turning back on by itself after you switched it off in
/configwhile it showed a sign-in failure - Fixed the PowerShell permission prompt showing thousands of characters of encoded text when PowerShell couldn't be started
- Fixed
/design-syncrefusing to run in a signed-in session after a Claude Code process of this version or later ran on the same machine with an API key - Fixed Remote Control and self-hosted runner sessions exiting when a message from their host arrived in two parts
- Fixed @-mentions picked from the menu finding no agent when the agent's name contains "agent-"
- Fixed
/cdnot loading the new folder's CLAUDE.md after entering and leaving a worktree - Fixed
claude -p --resumefailing with no message for a session title that contains a colon - Fixed
claude purgereporting success when the history file is a symlink: it now reports that item as not deleted and says where to remove the prompts - Fixed
/exportnever finishing after a subagent ran when a mod draws assistant messages - Fixed Stop being ignored for up to a minute in cloud sessions waiting for refreshed credentials
- Fixed a running workflow's progress not being saved after the session moved to another folder or worktree
- Fixed
--continuenot restoring the permission mode and worktree of a session that held only slash commands - Fixed a branch made with
/branchunder--agentlosing the agent when resumed - Fixed
/modelnot naming the effort level in screen reader mode - Fixed saving a plugin's options turning an untouched list option into one string
- Fixed plugin install records: a failed read of the list during an install no longer drops other plugins' records, and project or local installs are recorded for the launch folder after a shell
cd - Fixed hold-to-talk voice dictation losing the last words when Space was pressed or held again while "Transcribing…" was showing
- Fixed
/design-syncstopping with "still connecting" when run as the first prompt (claude /design-sync): it now waits up to 10 seconds for the connection - Fixed
/design-syncrefusing to publish large design systems to Claude: it now takes up to 4,080 files, up from 1,024 - Fixed
.worktreeincludeskipping files whose names are not ASCII - Fixed Code Mode drawing tool calls as empty rows, hiding a script's error, and calling a finished script lost after a resume, when a mod adds to or rewrites tool results
- Fixed Code Mode counting a script's tool calls toward the context size, which caused early compaction, and sending an image or PDF again after the API rejected it
- Fixed Code Mode freezing the terminal while checking a script's
rmof many files, refusing a hook-allowed MCP skill, and showing an MCP call as called after you pressed Esc at its permission prompt - Fixed subagents in Code Mode failing again in 2.1.333 with "Agent stalled" and losing their command when a script ran for more than 10 minutes
- Fixed some cases of Code Mode scripts overwriting an outside edit of a file after
/compact - Fixed settings changes going unnoticed when the file was replaced just as Claude Code began watching it
- Fixed MCP servers causing high CPU use when they ask for a zero retry delay and keep closing their event stream, and memory growing each time a connection drops and reconnects
- Windows: Fixed official plugin marketplace updates failing when another program briefly held one of its files
- Fixed one-line JSON tool output not expanding on click in fullscreen mode
- Fixed several Skill calls in one reply each re-sending the agent list and MCP server instructions
- Fixed Vim mode's
p,x
…