Skip to content

Claude Code v2.1.334

Released · Anthropic

Security fixChanges context and compaction settings, hooks, skills and plugins

Models:Adds Claude Haiku 5.5

What the release notes say

What's changed

  • Added a search box to /model when the list has more than 25 models, matching names and model IDs; press ↓ for s and number keys (anthropics/claude-code#99239) (anthropics/claude-code#107237)

  • Windows: Added /desktop and claude --desktop on Arm computers

  • Added an Auto-compact window row to /config to see and change the size that /autocompact sets

  • Self-hosted runner: Added --health-host 127.0.0.1 to the orchestrator, for its health and metrics pages

  • Added placement: "full" and Client autoFocus so a mod's pane can fill the terminal in fullscreen mode until you press Esc, with its Client taking keys from the start

  • Added cacheWrite5m, cacheWrite1h and, for Haiku 5.5, longPrompt to modelPricing, and cache_write_5m, cache_write_1h, long_prompt to gateway pricing.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 config to 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 --worktree in some bare repositories whose default branch isn't main

  • 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 --settings or 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=1 turns 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 /context drawing the compact buffer as used space when auto-compact is off

  • Fixed /ide and auto-connect not finding the editor on Linux hosts with no ps installed

  • 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 git failing certificate checks in sandboxed commands when a corporate CA is trusted through the keychain or NODE_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.attachment hooks 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 update not 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-sync showing 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 /config while 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-sync refusing 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 /cd not loading the new folder's CLAUDE.md after entering and leaving a worktree

  • Fixed claude -p --resume failing with no message for a session title that contains a colon

  • Fixed claude purge reporting success when the history file is a symlink: it now reports that item as not deleted and says where to remove the prompts

  • Fixed /export never 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 --continue not restoring the permission mode and worktree of a session that held only slash commands

  • Fixed a branch made with /branch under --agent losing the agent when resumed

  • Fixed /model not naming the effort level in screen reader mode

  • Fixed saving a plugin's options turning an untouched list option into one string