Claude Code 2.1.310
Highlights in this release
New 9
Bedrock, Vertex, and Foundry Support the Monitor Tool and Block Long Foreground Waits
When using Claude Code through Bedrock, Vertex, or Foundry, or when telemetry or nonessential network traffic is disabled, you can now use the Monitor tool (a utility for tracking the progress of background tasks) alongside plugin monitoring features. In these scenarios, if a program issues a long foreground pause wait, it is also directly blocked to prevent the terminal from being stuck on a waiting screen for extended periods. ⟦Step into a laboratory: previously, the progress dashboard could not be enabled, leaving you waiting idly during lengthy tasks; now you can check the dashboard to track background work, and arrangements that keep you waiting idly are intercepted.⟧ When you ask Claude to run a multi-step data transformation and send the work to the background, you can track plugin and task status through the Monitor tool without worrying about foreground commands sleeping indefinitely.
Original changelog
Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too
Compacting Conversations Trims Dense Text and Improves Memory Usage for Huge Transcripts
After encountering an error where the prompt exceeds the limit ("Prompt is too long"), compressing the conversation could still leave behind too much content, causing the subsequent request to fail again. This compaction process (summarizing and streamlining lengthy earlier context) frees up space. Previously, when dealing with dense text containing base64-encoded strings or SVG graphics, the compaction process retained too much original content, causing the next request immediately after shrinking to still fail with an error; this issue is now fixed. ⟦Picture packing an overweight suitcase: previously, too much remained even after tidying up, so it could still exceed the weight limit on the scale; what has now been fixed is the issue of keeping too much content after tidying.⟧ When transcript files are very large, memory usage during compaction has been improved for non-interactive sessions, such as sessions with the -p parameter or those called via the Agent SDK.
Original changelog
Fixed compaction after a "Prompt is too long" error keeping too much of a conversation with dense text, such as base64 or SVG, so the next request could fail again
Improved memory use of non-interactive sessions (-p, Agent SDK) during compaction when the transcript file is very large
Permission Prompts Explicitly List Symlink Targets, Strengthening Hook Checks and External Read Details
When reviewing tool access permissions or executing external operations, clear prompt details help you make the right call. When Claude requests to read a symlink (a shortcut file pointing to another location), the prompt window previously showed only the shortcut name, but now directly indicates the actual target it points to. On Windows systems, if Git Bash is not installed and the hook command contains only quoted strings, such as a quoted path, PreToolUse and PermissionRequest hooks (small programs triggered when specific events occur) previously allowed tool calls through by mistake, which has now been fixed. Before the first read outside the working directory in auto mode, the prompt explains under what circumstances blocking these reads will cause subsequent terminal commands to require permissions. Where you might previously have been unable to see where shortcuts lead or understand cascading permission effects, each prompt now provides clear explanations and hooks act as reliable gatekeepers.
Original changelog
Fixed file read permission prompts not showing where a symbolic link leads
Windows: Fixed PreToolUse and PermissionRequest hooks letting a tool call through when Git Bash is missing and the hook's command is only quoted strings, such as a quoted path
Improved auto mode's prompt before the first read outside the working directories: it now says when blocking those reads makes shell commands ask for permission
kitty, Ghostty, and iTerm2 Can Render Mod Images Inside tmux with Passthrough Enabled
Users who customarily enable fullscreen rendering in kitty, Ghostty, or iTerm2 3.5+ while working with the tmux multiplexer can now have a mod's Image component render properly. As long as you turn on the allow-passthrough option and focus-events inside tmux, the Image component in the mod can display pictures directly. ⟦Think of viewing an indoor art exhibition behind a special glass window: previously, if a double partition was drawn, visitors could only read text descriptions through bottom label strips; now, as long as you open the dedicated light-transmitting channel and sensor switch, the brightly colored paintings inside can be projected as intended.⟧ Prior to this, terminal environments matching these conditions often failed to render graphics, printing only plain alt text on the screen. This improvement restores visual plugins and image previews inside the terminal to normal display.
Original changelog
Improved a mod's Image to draw inside tmux with allow-passthrough and focus-events on, in kitty, Ghostty, and iTerm2 3.5+ with fullscreen rendering, where it showed only its alt text
Linux Names Ubuntu AppArmor Restrictions and Fixes When Sandbox Startup Is Blocked
When starting an isolated sandbox on Linux, particularly in an Ubuntu environment, security mechanisms sometimes cause conflicts. When AppArmor restrictions on user namespaces prevent the underlying tool bubblewrap from starting the sandbox smoothly, the /sandbox command and startup warnings now explicitly name this specific cause. ⟦Consider renting a movable partition from building management: previously, guards merely flashed a red light at the entrance when construction permits fell short, leaving people completely puzzled; now, signs explicitly state that building fire prevention codes restrict temporary canopies and provide concrete steps to visit the service desk to sign an exemption document.⟧ The prompt details the source of the Ubuntu restriction while explaining how to lift it, so you no longer have to dig through system logs to troubleshoot when a sandbox fails to start.
Original changelog
Linux: Improved /sandbox and the sandbox startup warning to name Ubuntu's AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox
MCP Tool Prompt Timeouts in Non-Interactive Mode Inform Claude Not to Repeat Calls
When running non-interactive sessions via scripts or automated schedules and invoking MCP (Model Context Protocol, a protocol connecting AI to external tools) tools, stalled two-way communication impacts subsequent decisions. If a tool server raises a further inquiry during execution and nobody responds in the unattended non-interactive state causing a timeout, the error message returned by the system has now been specifically adjusted. ⟦Imagine a reception desk paging an absent visitor over the intercom: previously, if no one answered, the system only returned a line timeout code, leading the assistant to repeatedly broadcast the same page; now, the desk receives a slip noting that no one arrived, explicitly directing them not to page again and to close the matter as is.⟧ The updated error report clearly informs Claude that no answer arrived and instructs it not to retry the same tool call, preventing automated tasks from falling into meaningless dead loops.
Original changelog
Changed the error for an MCP tool call that times out in a non-interactive session while the server's elicitation is unanswered: it now tells Claude that no answer came and not to repeat the call
Enterprise Custom Roles Support Cloud Sessions and Remote Control, Listing Granted Roles Before Activation
Companies want to let members use new tools without losing precise control over permission boundaries. Enterprise custom roles now officially include access permissions for Claude Code cloud sessions and Remote Control, allowing Owners to grant or revoke access based on team responsibilities. ⟦A corporate headquarters updates its high-level security protocol for access gates. Previously, flipping a master switch immediately opened passage to a secure server room, making it easy to overlook which departments held keycards. Flipping that switch now brings up a confirmation prompt that lists every job title with access clearance, preventing permissions from widening unintentionally.⟧ Alongside this change, turning on either feature in admin settings now prompts you for confirmation and lists the custom roles that currently hold that permission, preventing unintended privilege expansion.
Original changelog
[Cloud sessions] Added Claude Code cloud sessions and Remote Control permissions to Enterprise custom roles, so Owners can control access to each by role
[Cloud sessions] Changed turning on Cloud sessions or Remote Control in admin settings to ask for confirmation and list the custom roles that have that permission
Cloud Environment Settings Support Script File Loading with a Simplified Layout and In-Dialog Errors
Several form interactions and error reporting behaviors have been improved when configuring cloud session runtime environments and routines on the web interface. The cloud environment dialog refines its layout structure, opening network access, setup script, and environment variables from dedicated rows instead of listing every editor at once on a single screen. A new "Choose file" button lets you select and upload a setup script directly from a file. Setup script output in the session start checklist now appears inside a scrolling box, making long logs easier to read. For error reporting, failed saves and archives in the cloud environment edit dialog now display an error message directly inside the dialog. If an action on a routine API token (an authorization code used to verify identity) fails, the error no longer flashes only as a toast notification, but appears fully inside the routine edit dialog.
Original changelog
[Cloud sessions] Added a Choose file button to load a cloud environment's setup script from a file
[Cloud sessions] Fixed failed saves and archives in the cloud environment edit dialog showing no error inside the dialog
[Cloud sessions] Fixed failed routine API token actions showing only a toast; the error now appears in the routine edit dialog
[Cloud sessions] Improved the session start checklist to show a cloud environment's setup script output in a scrolling box
[Cloud sessions] Changed the cloud environment dialog to open network access, setup script and environment variables from rows instead of listing every editor at once
Code Review Retries Failed Repository Loads Automatically and Preserves the List Display
Screen handling during a failed refresh has been improved when configuring repository lists for Code Review in the admin console. Previously, whenever a background refresh of the repository list failed, the admin section completely hid all configured repositories and switches, preventing administrators from taking action. ⟦A library reading room updates its shelf catalog. In the past, whenever a network drop prevented staff from fetching the newest list, the librarian draped black cloths over the entire row of shelves to hide them completely. Now the system automatically attempts to reconnect, keeps the existing books on display if the connection fails, and hangs a single visible retry sign above the shelf.⟧ The system now automatically retries when the initial list load encounters an issue. If data still cannot be retrieved after retrying, the page displays a single "Try again" banner for manual retry instead of clearing repositories and switches from the screen.
Original changelog
[Code Review] Fixed the Code Review admin section hiding its repositories and switches after a failed refresh of the repository list
[Code Review] Improved the Code Review admin section to retry the first load and show one Try again banner when it still fails
Fixed 5
Automatically Stripping Rejected Beta Parameters and Retrying Requests Behind Gateways
When connecting through certain proxy servers or custom gateways, some compatible servers reject the effort-2025-11-24 beta parameter or disallow adding system messages in the middle of a conversation. Previously, such requests would directly fail and interrupt the operation. Now when encountering this error, Claude Code automatically strips the unaccepted parameter and mid-conversation messages before retrying the request, allowing you to prompt smoothly even from behind corporate gateways.
Original changelog
Fixed requests failing behind some gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages; Claude Code now retries without them
Setting the Cleanup Period to a Very Large Value No Longer Mistakenly Deletes Recent Files Like Pasted Images
When you intentionally set the temporary cleanup day count cleanupPeriodDays to a very large value to preserve history, the background cleanup mechanism previously had a logic flaw that mistakenly deleted recent files, such as images just pasted into the conversation. This issue is now fixed. Even when the cleanup period is set arbitrarily long, Claude Code will no longer prematurely purge these recently created important files.
Original changelog
Fixed background cleanup deleting some recent files, such as pasted images, when cleanupPeriodDays is set to a very large value
Closing an External Editor After a Long Edit No Longer Immediately Triggers Auto-Continue Timeout
When answering questions, you might carefully draft your response in an external editor such as Vim or VS Code. Previously, after editing for an extended period and closing the window, the auto-continue timeout would trigger the moment it closed. This timing issue has now been fixed and will no longer fire at the instant of closing.
Original changelog
Fixed a question's auto-continue timeout firing the moment the external editor closed after a long edit
VS Code Fixes Feedback Misapproval on Plans and Cloud Branch Switching Errors
When reviewing planning steps or managing history in the VS Code extension, two button interaction issues have been fixed. In the plan review card, when you type feedback suggestions and press Enter on the "Send feedback and keep planning" button, the extension previously mistakenly approved the entire plan rather than sending your comments back for re-planning. ⟦Take filling out a paper survey: previously, pressing the submit button in the feedback field was mistakenly treated by the front desk as approval that skipped follow-up steps, and retrieving files from web archives to switch folders even caused the panel to go black; now, submitting feedback reliably sends it back for revision, and switching branches across tabs transitions smoothly.⟧ Another fix addresses the Web tab in Session history: after opening a cloud session and clicking "Switch branch & continue" to switch branches, the panel will no longer unexpectedly pop up a "Something went wrong" error message.
Original changelog
[VSCode] Fixed pressing Enter on the plan review card's "Send feedback and keep planning" button approving the plan instead of sending your comments back
[VSCode] Fixed the panel showing "Something went wrong" after "Switch branch & continue" on a cloud session opened from Session history's Web tab
Claude Tag Supports Formatted Commands and Fixes Admin Loading and Filtering Errors
Several display issues in command recognition and the admin console have been resolved when using the Claude Tag collaboration tool. When entering ! commands (such as !restart and !help) in a chat window, applying text formatting like bold, italic, or strikethrough previously caused the system to treat them as ordinary messages and skip execution. Formatted commands are now recognized and executed properly. In the admin console, if a background refresh of the bundle list encounters a temporary failure, the admin channel and workspace pages are no longer replaced entirely by a load error, preserving the existing interface. On the spend limits page in admin settings, applying a filter while channel names are still loading will no longer prematurely report that no channels match, avoiding confusion midway through loading.
Original changelog
[Claude Tag] Fixed Claude Tag treating ! commands such as !restart and !help as ordinary messages when sent in bold, italic or strikethrough
[Claude Tag] Fixed Claude Tag admin channel and workspace pages being replaced by a load error when a background refresh of the bundle list fails
[Claude Tag] Fixed Claude Tag's spend limits page in admin settings reporting that no channels match a filter while channel names are still loading