Release notes
Claude Code v2.1.335
What's changed
- Added
claude mcp add --webto add a remote MCP server as a claude.ai connector from your terminal, on paid plans - Added Tab completion for
/model,/effort,/mcp,/advisor,/tuiand/colorarguments; in these and the/pluginand/configmenus, Enter runs what you typed unless you arrow to a row - Added click to view: in fullscreen outside VS Code, in a git repository and a window 110 columns or wider, click a file path in a reply or tool row to see the file beside the chat, at the line named
- Added support for cloud sessions loading the plugins and mods in a repository's
.claude/skills; a hook that reaches out of its plugin's folder with../fails there and can block shell commands - Added a way to finish signing in to your organization's gateway through its identity provider from
/login, over SSH or on Linux with no display - Linux: Added
/desktopandclaude --desktopon Linux desktops - Added
/claude-api harness-auditto find agent harness code written for older models (loop limits, sub-agents, context management, injected reminders, session-start code) and propose fixes as a diff - Added support for mods calling
on()inside theirsession.starthook, so hooks can be registered based on a fetch or MCP call - Added
sourceandviato thesession.stopmod event, saying who sent the Stop and how it arrived - Added
requiredByOrganizationtoclaude plugin list --jsonfor plugins your organization requires - Added an
Interrupthook event that fires when a turn is interrupted and says whether a person, another session or the system stopped it - Added
/accessto view the verification programs your claude.ai account is in, such as the Cyber Verification Program - Windows: Added the
disableWindowsBashCommandSplitmanaged setting: on Pro and Max,truekeeps Bash commands in one argument for tools matching command lines; long ones may fail (v2.1.319 or later) - Fixed the model button in the Claude mobile apps keeping the old model after
/modelin a cloud session - Fixed self-hosted runners reporting a session as failed after the service had archived it or taken it from them; post-session hooks now usually get
completedorinterruptedthere - Fixed
/schedulenot listing your organization's self-hosted environments, and creating a cloud environment where one of those could be used - Fixed charts misreading some cells:
(7drawn as a negative number,$1.2bnwithout its multiple,1e-400and malformed durations as zero, and a first row lost from a table with no header - Fixed the result of a running command missing from the session transcript when
claude -pis stopped with SIGTERM - Fixed TaskUpdate reporting a dependency as added when the other task does not exist
- Fixed starting several worktree-isolated agents at once sometimes failing with "failed to read commondir"
- Fixed
forceLoginOrgUUIDin managed settings refusing its own organization when the ID is written in capital letters - Fixed the Artifact tool blaming the owner's organization when Claude can't reach the stored data of an artifact shared from another organization
- Fixed the Artifact tool dropping your edits to most pages' built-in styles or body tag on the next publish, after it restored the page's missing source file
- Fixed code display: syntax highlighting breaking a line before
${in some CSS template literals, and inline code losing its formatting or turning into a link after a~right before a backtick - Fixed "nice(5) failed: operation not permitted" printed for each background job of a zsh command in the macOS sandbox
- Fixed a reply stopped at a permission prompt running again after a cloud, self-hosted runner or Remote Control session restarted
- Fixed
claude stopandclaude rmsometimes exiting with no output and no effect right after the background service died - Fixed Claude in Chrome not connecting on Windows when the path to Claude Code contains non-ASCII characters
- Fixed the report URL from
/insightsnot opening on Windows or when the path contains spaces - Fixed the
/setup-vertexwizard on Windows not finding a service account key given as~\keys\key.json - Fixed
/terminal-setuprefusing to update a VS Codesettings.jsonthat has trailing commas - Fixed
/importdestroying an existingCLAUDE.mdthat isn't saved as UTF-8 - Fixed dropping an image whose file name has an apostrophe pasting its path instead of attaching it, in terminals that quote dropped paths
- Fixed
/keybindingsand/plan openreporting a file as opened, and Ctrl+G doing nothing, when no editor is installed - Fixed
~/.claude.jsonbeing replaced with default settings at startup when the drive returned an I/O error or timed out - Fixed
/modellisting no gateway models when the gateway returned"display_name": nullfor one of them - Fixed
claude --resume <name>and/resume <name>not finding a session whose name has zero-width characters, as in Persian and Hindi words and some emoji - Fixed MCP forms that couldn't be accepted after an optional text field was filled in and emptied again
- Fixed
/confignot saying so when "Show tips" or "Reduce motion" could not be saved - Fixed
claude plugin listand VS Code's Manage plugins showing the wrong on or off state for a plugin that managed settings decide - Fixed messages in IDE extensions and the Desktop app waiting up to a minute behind a plugin's unanswered question or a pane waiting for an answer
- Fixed a retried or edited message coming back into a cloud session's context after a failed request and a restart
- Fixed
/diffleaving out blank lines and showing wrong line numbers when git'sdiff.suppressBlankEmptyis on - Fixed terminal color codes in the git status Claude sees at the start of a conversation when git's
color.uiis set toalways - Fixed added and removed line counts in cloud and Remote Control sessions leaving out changed lines that begin with
++or-- - Fixed
/contextlisting MCP tools as deferred after the API endpoint had refused tool search - Fixed
/code-reviewwith no target printing "REVIEW.md wasn't followed" in repos where only folders untouched by the committed changes have a REVIEW.md - Fixed
/rewindleaving out the row of a stoppedcontext: forkskill when a message was queued as you pressed Esc, so its edits counted under the prompt before - Fixed a Haiku, Sonnet or Opus subagent model set in a project's settings not applying in Claude Desktop's Code tab
- Fixed Remote Control showing a session as waiting for input after Stop left an MCP form open, or after an MCP link was accepted
- Fixed
/design-syncand artifact updates overwriting a teammate's newer edit after a compacted session was resumed - Fixed
claude plugin marketplace add --claudeairefusing right after a first sign-in, until two sessions had been started - Fixed cloud and Remote Control sessions forgetting the focus view when they wake or restart
- Fixed resumed sessions, also in VS Code, showing "Background shell command didn't finish" for a Monitor that had expired or ended by itself
- Fixed MCP servers with five-minute OAuth access tokens getting a token refresh before every request; short-lived tokens are now used for half their lifetime
- Fixed sandboxed
giton macOS failing on every HTTPS host when a certificate inNODE_EXTRA_CA_CERTShas blank lines in it - Fixed Remove at the worktree exit question deleting files or commits made while it was open, when it had shown none
- Fixed computer use on macOS refusing "Try again" after you grant Accessibility, until Claude Code restarted
- Fixed pull requests opened or merged with
gh apinot being recognized as such in the transcript - Fixed
/background
…