claudekit / updates / claude-code-2-1-335
[ PATCH · ]

Claude Code 2.1.335

claude mcp add --web adds a remote MCP server as a claude.ai connector from your terminal, slash command arguments get Tab completion, and file paths in replies open beside the chat on click. Fixes /import destroying a CLAUDE.md that isn't UTF-8 and .claude.json being reset to defaults at startup, while computer use approvals now expire and Bitbucket SSH sources are handled differently. 125 changes.

Official announcement →

This article is a summary based on official documentation.

What changed

Claude Code 2.1.335 shipped on December 3, 2026, with 125 changes, 76 of them fixes. 36 entries are for the VS Code extension and 89 cover the CLI, cloud sessions, self-hosted runners and other surfaces. For everyday use, the visible additions are claude mcp add --web, Tab completion for slash command arguments, and click to view for file paths. Several fixes stop settings files or work from being lost. Computer use approvals now expire, and organizations with self-hosted runners need to update runners before users’ CLIs because of a Bitbucket SSH change, so read the Notes below first.

New features

  • claude mcp add --web

    claude mcp add --web adds a remote MCP server as a claude.ai connector from your terminal, on paid plans.

  • Tab completion for slash command arguments

    /model, /effort, /mcp, /advisor, /tui and /color arguments get Tab completion. In these and the /plugin and /config menus, Enter runs what you typed unless you arrow to a row.

  • Click to view

    In fullscreen outside VS Code, in a git repository and a window 110 columns or wider, you can click a file path in a reply or tool row to see the file beside the chat, at the line named.

  • Repository plugins and mods in cloud sessions

    Cloud sessions now load the plugins and mods (plugins written as JavaScript or TypeScript functions) in a repository’s .claude/skills. A hook that reaches out of its plugin’s folder with ../ fails there and can block shell commands.

  • Gateway sign-in over SSH or with no display

    You can now finish signing in to your organization’s gateway through its identity provider from /login, over SSH or on Linux with no display.

  • /desktop on Linux

    /desktop and claude --desktop now work on Linux desktops.

  • /claude-api harness-audit

    Agent harness code written for older models can get in the way of newer ones. /claude-api harness-audit finds such code (loop limits, sub-agents, context management, injected reminders, session-start code) and proposes fixes as a diff.

  • Mod and hook events

    • Mods can call on() inside their session.start hook, so hooks can be registered based on a fetch or MCP call.
    • The session.stop mod event gets source and via, saying who sent the Stop and how it arrived.
    • A new Interrupt hook event fires when a turn is interrupted and says whether a person, another session or the system stopped it.
  • Organization and account

    • claude plugin list --json gets requiredByOrganization for plugins your organization requires.
    • /access shows the verification programs your claude.ai account is in, such as the Cyber Verification Program.
    • Windows: the disableWindowsBashCommandSplit managed setting. On Pro and Max, true keeps Bash commands in one argument for tools matching command lines; long ones may fail (v2.1.319 or later).
  • VS Code additions

    • A Switch model button in the new look under a reply that failed because the model is unavailable.
    • The claudeCode.openSessionsInActiveGroup setting, to open sessions from the session list in the active editor group instead of a new one.
    • A Reload window button on the “Something went wrong” page.

Key improvements

  • Computer use approvals and safety rules

    • Computer use approvals now end after 2 hours without computer use (30 minutes for the clipboard and system shortcuts), and always 24 hours after you approve.
    • Computer use on macOS follows newer safety rules, so more actions are refused and more apps have less access.
    • Turning on computer use in /mcp on macOS asks first in a dialog with its warnings; people who already have it on aren’t asked.
  • Bitbucket SSH sources

    • Claude Code treats ssh.bitbucket.org as Bitbucket Cloud: sessions name bitbucket.org as their source, --teleport matches them, and OpenTelemetry repository attributes report bitbucket.org.
    • Self-hosted runner: --git-ssh-rewrite ssh.bitbucket.org also covers bitbucket.org sources, so its key needs access to those repositories.
    • ssh.bitbucket.org and altssh.bitbucket.org sources are sent differently. Self-hosted runners whose --git-ssh-rewrite lists only those hosts must be updated before users’ CLIs, or they clone over https.
  • Managed settings and MCP

    • In an organization managed in Anthropic’s Enterprise Admin Console, local MCP servers stop when “Allow local MCP servers” is off, unless an admin’s allowlist names them.
    • The managed settings approval dialog no longer shows when an organization only enables a plugin.
    • /mcp enable and /mcp disable with no server name in the terminal open the MCP screen; type all to change every server.
  • /claude-api skill

    • /claude-api prompt-audit now flags broad ask-first rules, always-delegate instructions and “treat earlier answers as done” lines, and keeps stop-early guidance the model needs.
    • The /claude-api managed-agents-onboard Bug hunter template runs at most 20 agents at once, matching the Claude Console.
    • The /claude-api skill gets the SDKs’ error codes and stream errors and simpler retry guidance, with its rate limit header names and C# exception classes fixed.
  • Messages and accessibility

    • The “Autocompact is thrashing” error names instruction files such as CLAUDE.md when they take up more of the context than anything else.
    • /usage for screen readers: each limit’s percentage is now read once, not twice.
    • When a session’s host app is disconnected, Claude is told that the app’s tools can’t run, so it moves on instead of retrying each one.
    • The Telemetry row of /status says what the session is set to send to your organization’s collector, since it can’t tell whether the data arrived.
  • Windows Git Bash

    On Pro and Max plans, Claude is told more about Git Bash paths and failed commands, and working-folder tracking is better.

  • Amazon Bedrock and AWS

    • Subagent progress summaries in terminal sessions on Amazon Bedrock (Mantle) and Claude Platform on AWS use far fewer tokens by writing them from short notes.
    • Bedrock and Mantle requests for a main model that is the small fast model under another spelling use your main AWS region, not ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION.
  • Plugins and Read

    • Plugins fetched during a headless first start (-p, Agent SDK) may not load until a later start or an SDK reload.
    • Read’s PDF page images: hooks and scripts should read them while the call and the PostToolUse hooks it waits for run, not later.
  • VS Code improvements and behavior changes

    • In the session list you can drop a session anywhere on a group, not only on its header, and View details opens Account & usage there instead of in a chat.
    • In the new look, the sessions view puts sessions first with usage limits at the bottom, and the / menu, right-click menu, session history and Account and usage are easier to read.
    • The mode menu’s “Edit automatically” is now “Accept edits”, as in Desktop and the terminal; the new look lists only modes, with Effort and Ultracode in the model and / menus.
    • Sessions you put in plan mode reopen in plan mode after a reload, a restart or from session history.
    • The Windows shortcuts are now Alt+Y (focus Claude) and Shift+Alt+Y (new tab), since Windows takes Ctrl+Esc and Ctrl+Shift+Esc.
    • Edits to .env and similar files in the new look show only the text Claude wrote, as in the old look.
    • Permission prompts that wait for an unfinished Japanese or Chinese word take keys again once the wait of up to 20 seconds is over.
    • The “Remote Control is active” message no longer shows each time a session connects at startup, and the “Browser connected” banner no longer shows in every session with Claude in Chrome on by default.
    • The prompt cache clock in the new look shows only once the cache has likely expired or after a compaction, without a countdown.
    • With no Claude view open, a failed sign-out now shows an error and you may stay signed in.
    • The claudeCode.newLook setting is now a checkbox, and the working indicator and in-progress to-do mark change from a star to three dots.

Bug fixes

Lost settings and work

  • /import destroying an existing CLAUDE.md that isn’t saved as UTF-8.
  • ~/.claude.json being replaced with default settings at startup when the drive returned an I/O error or timed out.
  • Remove at the worktree exit question deleting files or commits made while it was open, when it had shown none.
  • VS Code: ~/.claude/settings.json being left empty on macOS and Windows when a save was interrupted in a folder that refuses renames.
  • /terminal-setup refusing to update a VS Code settings.json that has trailing commas, and /config not saying so when “Show tips” or “Reduce motion” could not be saved.

Sessions, resume and exit

  • The result of a running command missing from the session transcript when claude -p is stopped with SIGTERM.
  • A reply stopped at a permission prompt running again after a cloud, self-hosted runner or Remote Control session restarted.
  • claude stop and claude rm sometimes exiting with no output and no effect right after the background service died.
  • 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.
  • /exit in an idle terminal hiding turns made in another terminal when the session was resumed, and /exit in a new session leaving an empty conversation for --continue to open.
  • /background leaving its own command in the conversation that the background session continues, and a background agent losing its task when it was woken in a session that saves no transcript.
  • Resumed sessions, also in VS Code, showing “Background shell command didn’t finish” for a Monitor that had expired or ended by itself.
  • /rewind leaving out the row of a stopped context: fork skill when a message was queued as you pressed Esc, so its edits counted under the prompt before.
  • Starting several worktree-isolated agents at once sometimes failing with “failed to read commondir”, and the one-time auto-compact prompt opening over a history search or menu.

Plugins, mods and MCP

  • claude plugin list and VS Code’s Manage plugins showing the wrong on or off state for a plugin that managed settings decide.
  • claude plugin marketplace add --claudeai refusing right after a first sign-in, until two sessions had been started.
  • MCP forms that couldn’t be accepted after an optional text field was filled in and emptied again.
  • 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.
  • /context listing MCP tools as deferred after the API endpoint had refused tool search.
  • /model listing no gateway models when the gateway returned "display_name": null for one of them.
  • 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.
  • Mods: a toast pushing a warning off the notification line outside fullscreen, a placement: "full" pane docking after a long wait, and ctrl+x ctrl+a saying “plugin panel hidden” with no panel.

Tools and display

  • Charts misreading some cells: (7 drawn as a negative number, $1.2bn without its multiple, 1e-400 and malformed durations as zero, and a first row lost from a table with no header.
  • 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.
  • /diff leaving out blank lines and showing wrong line numbers when git’s diff.suppressBlankEmpty is on, and terminal color codes in the git status Claude sees at the start of a conversation when git’s color.ui is set to always.
  • Added and removed line counts in cloud and Remote Control sessions leaving out changed lines that begin with ++ or --.
  • TaskUpdate reporting a dependency as added when the other task does not exist, and pull requests opened or merged with gh api not being recognized as such in the transcript.
  • /code-review with no target printing “REVIEW.md wasn’t followed” in repos where only folders untouched by the committed changes have a REVIEW.md.

Platform and environment

  • “nice(5) failed: operation not permitted” printed for each background job of a zsh command in the macOS sandbox.
  • Sandboxed git on macOS failing on every HTTPS host when a certificate in NODE_EXTRA_CA_CERTS has blank lines in it.
  • Computer use on macOS refusing “Try again” after you grant Accessibility, until Claude Code restarted, and leaving your terminal behind the app Claude was using after a turn, if your terminal was in front when Claude started.
  • Windows: long Bash commands reaching Git Bash cut short — they now arrive whole, or are refused with a message (on Pro and Max plans).
  • Claude in Chrome not connecting on Windows when the path to Claude Code contains non-ASCII characters, the report URL from /insights not opening on Windows or when the path contains spaces, and the /setup-vertex wizard on Windows not finding a service account key given as ~\keys\key.json.
  • Dropping an image whose file name has an apostrophe pasting its path instead of attaching it, in terminals that quote dropped paths.
  • /keybindings and /plan open reporting a file as opened, and Ctrl+G doing nothing, when no editor is installed.
  • forceLoginOrgUUID in managed settings refusing its own organization when the ID is written in capital letters.

Cloud, Remote Control and self-hosted runners

  • The model button in the Claude mobile apps keeping the old model after /model in a cloud session.
  • 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 completed or interrupted there.
  • /schedule not listing your organization’s self-hosted environments, and creating a cloud environment where one of those could be used.
  • A retried or edited message coming back into a cloud session’s context after a failed request and a restart.
  • Cloud and Remote Control sessions forgetting the focus view when they wake or restart, and Remote Control showing a session as waiting for input after Stop left an MCP form open, or after an MCP link was accepted.
  • A Haiku, Sonnet or Opus subagent model set in a project’s settings not applying in Claude Desktop’s Code tab.

Artifacts and /design-sync

  • The Artifact tool blaming the owner’s organization when Claude can’t reach the stored data of an artifact shared from another organization.
  • 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.
  • /design-sync and artifact updates overwriting a teammate’s newer edit after a compacted session was resumed, and /design-sync stopping with “no design system” on a large design system that someone outside your organization can edit.

VS Code

  • A garbled first Korean, Japanese or Chinese word after picking a model or mode in the new look, in each new tab or after a reload; click the message box to type there.
  • Voice dictation dropping the last words spoken just before you stopped it or pressed Send.
  • Clicks on a permission prompt’s Yes being ignored in some cases in the new look, and typing being lost after closing an agent’s transcript or a background command’s output in the new look.
  • The panel crashing on a reply with very deeply nested quotes or lists, the chat sometimes no longer following new output after a command finished, and plugins that redraw often having clicks on their buttons ignored and long conversations getting slower by the minute.
  • The chat showing only “Loading…” for about 7 seconds on Windows after moving the panel or running Reload Webviews while Claude was working, and most background tasks, such as dev servers, running on in Windows after their chat was closed or the window reloaded between turns.
  • The context usage indicator showing full after a session went back from the 400K auto-compact window to 1M, and a new session starting in an earlier permission mode after the mode was picked in another tab or window, or while Claude was not running.
  • The Cloud tab: sessions with several repositories missing when the open folder isn’t their first repository, and archived sessions looking live — they now appear under Archived sessions.
  • /memory not leading to CLAUDE.md files — the Memory dialog now has an Instructions row, and Context usage no longer points to the removed /agents.
  • Plugin installs and updates saying the source couldn’t be reached for a name with “network” or a package npm says doesn’t exist, and showing a general error when git lost its connection, and Manage plugins showing a running MCP server as not loaded when a plugin’s own name differs from the name its marketplace lists.
  • Other fixes include a broken character left after rejecting a change that swaps one emoji for another, browser tabs listed above files when typing @t or @te, and the Account & usage dialog vanishing when a permission request arrived.

Notes

  • If you run self-hosted runners with --git-ssh-rewrite for Bitbucket, update runners before users’ CLIs update. Runners whose --git-ssh-rewrite lists only ssh.bitbucket.org and altssh.bitbucket.org otherwise clone over https, and --git-ssh-rewrite ssh.bitbucket.org now also covers bitbucket.org sources, so its key needs access to those repositories.
  • If you use computer use, approvals now end after 2 hours without computer use (30 minutes for the clipboard and system shortcuts), and always 24 hours after you approve. On macOS, newer safety rules refuse more actions.
  • If your organization is managed in the Enterprise Admin Console, local MCP servers stop when “Allow local MCP servers” is off, unless an admin’s allowlist names them.
  • If you ran /mcp enable or /mcp disable with no server name, it now opens the MCP screen; type all to change every server.
  • If cloud sessions load your repository’s plugins, a hook that reaches out of its plugin’s folder with ../ fails there and can block shell commands.
  • If plugins are fetched on a headless first start (-p, Agent SDK), they may not load until a later start or an SDK reload.
  • If hooks or scripts read Read’s PDF page images, they should do so while the call and the PostToolUse hooks it waits for run, not later.
  • If you set ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION on Bedrock or Mantle, a main model that is the small fast model under another spelling now uses your main AWS region.
  • If you use VS Code on Windows, the shortcuts are now Alt+Y (focus Claude) and Shift+Alt+Y (new tab).
  • In VS Code’s mode menu, “Edit automatically” is now “Accept edits”.
  • When you press Enter in slash command menus (/model, /effort, /mcp, /advisor, /tui, /color, /plugin, /config), what you typed runs unless you arrow to a row.
  • This post covers the main items only. See the GitHub release notes for the full list.