Claude Code 2.1.319
Highlights in this release
- Auto mode asks or denies when telemetry is disabled, and projects cannot reopen checks turned off outside
- Terminal supports background execution for MCP tasks, offering an environment variable to toggle waiting mode
- Permission prompts support direct denial, prioritizing broad deny rules over specific asks
New 19
Auto mode asks or denies when telemetry is disabled, and projects cannot reopen checks turned off outside
When using auto mode with telemetry or feature flags disabled, calls the server cannot review for safety are now asked about or denied directly, without falling back to the built-in classifier. Behavior on Bedrock, Vertex, and Foundry remains unchanged, and setting CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the legacy mechanism. Behind an LLM gateway, setting CLAUDE_CODE_AUTO_MODE_SERVER=1 turns on server-side checks even if CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS is specified. If the latter is set by managed settings, the former must also be configured in managed settings. A bug has been fixed where CLAUDE_CODE_AUTO_MODE_SERVER=1 in managed settings was ignored behind an LLM gateway when the gateway URL was configured only there and server-managed settings could not be fetched. In addition, once you switch off the check outside a project, individual project settings or plugins can no longer turn it back on. ⟦Picture a central security desk locking the master switch: while room switches could previously override it, individual rooms can no longer reopen the lock on their own.⟧
Original changelog
Changed auto mode with telemetry or feature flags off, including behind LLM gateways: calls the server can't check are asked about or denied, with no fallback to the built-in classifier; set CLAUDE_CODE_AUTO_MODE_SERVER=0 to keep using it (Bedrock, Vertex and Foundry are unchanged)
Changed auto mode behind an LLM gateway: CLAUDE_CODE_AUTO_MODE_SERVER=1 turns on the server-side check even with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set; if managed settings set the latter, they must set the 1 too
Fixed a case where CLAUDE_CODE_AUTO_MODE_SERVER=1 in managed settings was ignored behind an LLM gateway when the gateway's URL is set only there and server-managed settings can't be fetched
Changed auto mode so that a project's settings files or a plugin can no longer switch its server-side check back on once you have switched it off outside the project
Terminal supports background execution for MCP tasks, offering an environment variable to toggle waiting mode
When you call an MCP (Model Context Protocol, a protocol for connecting AI to external tools) server through the terminal, if a tool executes the call as a task, Claude Code immediately moves it to the background and reports the result to Claude upon completion. This capability now works in the terminal without fetching feature flags, making it directly available across Bedrock, Vertex, Foundry, LLM gateways, and environments with telemetry disabled. If you prefer the tool call to stay in the foreground waiting for the task to complete, you can configure the CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND environment variable. If you do not want to use this mechanism at all, set CLAUDE_CODE_DISABLE_MCP_TASKS to 1 to turn it off. ⟦A clerk delivers a bulky print job to the copy center: where you previously had to wait right by the copier for the output, you can now hand over the slip and attend to other work, receiving a desk delivery once printing finishes.⟧
Original changelog
Added support for MCP tasks in the terminal: when an MCP server runs a tool call as a task, Claude Code moves it to the background right away and tells Claude the result when it finishes
Added the CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND environment variable to make Claude Code wait for an MCP task inside its tool call instead of moving it to the background right away
Changed MCP tasks to work in the terminal without feature-flag fetching (Bedrock, Vertex, Foundry, LLM gateways, DISABLE_TELEMETRY); set CLAUDE_CODE_DISABLE_MCP_TASKS=1 to turn them off
Permission prompts support direct denial, prioritizing broad deny rules over specific asks
When running tools in terminal sessions, subagents, or teammates, if you do not want workflows getting stuck on permission prompts, you can enable the permissions.denyInsteadOfPrompting setting. Once turned on, tool calls that would otherwise wait for manual confirmation are denied immediately, allowing the turn to continue. When a Bash or PowerShell command matches both a specific ask rule and a broader deny rule, the tool directly refuses to execute the command rather than presenting a prompt. In addition, the Bash tool now actively requests permission before running which whenever flags fall outside a standard lookup and display set. ⟦Consider a ticket kiosk switching to direct night mode: when encountering an unsupported obscure payment method, it spits out the coin and moves on instead of freezing on the payment screen for an attendant, replacing manual confirmation with immediate automated decisions.⟧
Original changelog
Added permissions.denyInsteadOfPrompting setting: a tool call that would wait on a permission prompt is denied and the turn continues, in terminal sessions, subagents and teammates
Changed a session's exact Bash or PowerShell ask rule to be refused, not asked about, when a broader deny rule covers the command
Changed the Bash tool to ask for permission before running which with flags outside a lookup/display set
Adds API latency optimization command, synchronizing Managed Agents configuration templates
When tuning Claude API code, entering /claude-api latency-optimize now helps find bottlenecks that make people wait and tests faster configuration combinations against your eval. For Managed Agents sessions, an error in the skill description claiming Console web settings do not apply has been corrected, and its credential and permission examples have been tightened. Additionally, templates in /claude-api managed-agents-onboard now match Claude Console specifications, removing the Performance tuner template, renaming two others, and disabling web search and fetch across five templates whose prompts do not require network access. ⟦A garage mechanic runs diagnostic instruments across engine piping: replacing worn parts with lightweight components and stripping excess vehicle weight cuts down initial acceleration time.⟧
Original changelog
Added /claude-api latency-optimize to find where your Claude API code makes people wait and try faster settings against your eval
Fixed the /claude-api skill saying Console web settings don't apply to Managed Agents sessions, and tightened its credential and permission examples
Updated /claude-api managed-agents-onboard templates to match the Claude Console: removed Performance tuner, renamed two, and turned off web search and fetch in five whose prompts don't use them
Config saves no longer leave empty files, supporting standalone disabling of feature-flag fetching
When you want to retain telemetry while stopping the retrieval of experimental toggles, you can now set the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable so that every feature flag directly applies its built-in default. A bug where manual edits made within a few seconds of writing a settings file were ignored has now been resolved. If your home directory holds two configuration files due to a lingering legacy filename, Claude Code now explains on stderr which one is currently in use. When disk space fills up during a save inside a read-only folder or to a bind-mounted file (with one session saving at a time), ~/.claude.json, settings files, and edited files no longer end up empty or cut off. On Windows, config saves now wait longer for other programs to release the file, reducing the likelihood that terminating the process during a save leaves ~/.claude.json empty.
Original changelog
Added the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable, which stops feature-flag fetching without turning off telemetry; every flag then uses its built-in default
Fixed edits to a settings file being ignored when made within a few seconds of Claude Code writing that file
Fixed a config file left at the legacy name hiding your setup with no warning: Claude Code now says on stderr when a home holds two config files, and which is in use
Fixed ~/.claude.json, settings and edited files ending up empty or cut off when the disk fills during a save in a read-only folder or to a bind-mounted file (one session saving at a time)
Improved config saves on Windows: Claude Code waits longer for a file another program has open, so a kill during a save is less likely to leave ~/.claude.json empty
Claude Apps gateway supports pooled group budgets, JSON logs, and login notices
When organizations manage team usage through the Claude apps gateway, billing and operational controls receive more comprehensive support. If a developer belongs to multiple groups, administrators can use admin.pooled_conflict_rule and admin.pooled_priority_order to configure which pooled group budget pays first. When the gateway runs this version or later and a developer has no spend limit, entering /usage allows checking spend for today, this week, and this month. The gateway adds login_notice to display announcements on verification and sign-in pages. By specifying CLAUDE_GATEWAY_LOG_FORMAT=json, operational logs become JSON containing severity level, time, and message fields for log collectors that read severity levels from structured fields. When reaching the limit, the error message displays the reset date, appending a custom block notice only if admin.blocked_message is set.
Original changelog
Added spend for today, this week and this month to /usage for developers behind a Claude apps gateway who have no spend limit, when the gateway runs this version or later
Added admin.pooled_conflict_rule and admin.pooled_priority_order to the Claude apps gateway, to set which pooled group budget pays first for a developer in several groups
Added an optional login_notice setting to the Claude apps gateway that shows an operator-defined message on the gateway's browser verification page and on Claude Code's sign-in screen
Added CLAUDE_GATEWAY_LOG_FORMAT=json to the Claude apps gateway: operational log lines become JSON with severity, time and message, for log collectors that read the level from a field
Improved the Claude apps gateway's spend limit error: it reads "spend limit reached · resets Dec 1", then admin.blocked_message if one is set
Claude Apps Gateway Strengthens Boot Warnings, Explicitly Labeling Upstream Names and Model Settings
When deploying the Claude apps gateway, note several new startup warnings. The gateway now warns when another policy's availableModels also allows a custom model id that one policy lists by name. It also warns ahead of Claude Desktop's November 10 change if policies have no desktopHome while relying on coworkTabEnabled: false or chatSessionRetentionDays. Warnings also trigger when upstreams mix AWS GovCloud with other upstreams, or when base URL variables exist in the gateway's environment. A startup log warning is also added when managed settings name an Amazon Bedrock guardrail in a header that the gateway does not forward, while no bedrock upstream sets a guardrail. Warnings about a failed upstream call now name the upstream rather than only its provider. Finally, Claude Desktop no longer offers a web search tool that always failed when every upstream is Amazon Bedrock.
Original changelog
Added a Claude apps gateway boot warning for a case where another policy's availableModels also allows a custom model id that one policy lists by name
Added start-up warnings to the Claude apps gateway for policies with no desktopHome that rely on coworkTabEnabled: false or chatSessionRetentionDays, ahead of Claude Desktop's November 10 change
Improved the Claude apps gateway's warnings about a failed upstream call: each now names the upstream, not only its provider
Gateway: Added startup warnings for upstreams that mix AWS GovCloud with other upstreams, and for base URL variables in the gateway's environment
Gateway: Added a start-up log warning when managed settings name an Amazon Bedrock guardrail in a header, which the gateway doesn't forward, and no bedrock upstream sets a guardrail
Gateway: Fixed Claude Desktop offering a web search tool that always failed when every upstream is Amazon Bedrock
Task List Adds Historical Subagent History, Improving Hand-Back Reports and Safeguard Alerts
When running /tasks to view the task list, an "Earlier in this session" row is now added to fully list finished subagents, allowing you to reopen and message one at any time even after it leaves the list or you restart. A fix resolves an issue where subagent hand-back reports displayed an internal marker and provenance note when expanded outside verbose mode. Following context compaction, subagents are no longer told to expect a completion notice for background agents they neither started nor took over. If a background agent's later report is refused, the system no longer silently drops it, but instead notifies you that it was refused and explains how to request it. When safeguards stop a subagent, Claude is now instructed to retry with a narrower prompt or inform you directly, rather than taking over the work itself. ⟦Much like a support desk supervisor dashboard, closed tickets remain neatly listed for review or follow-up at any time, internal codes are cleared from handover notes, and warnings surface immediately whenever exceptions arise.⟧
Original changelog
Added an "Earlier in this session" row to /tasks that lists finished subagents, so you can reopen one and message it even after it leaves the list or you restart
Fixed subagent hand-back reports showing an internal marker and provenance note when expanded outside verbose mode
Fixed subagents being told after compaction to expect a completion notice for background agents they neither started nor took over
Fixed a case where a background agent's later report was lost silently: the notification now says it was refused and how to ask for it
Changed what Claude is told after safeguards stop a subagent: retry with a narrower prompt or tell you, instead of doing the work itself
Loop Command Adds Container Lifecycle Warnings, Ending Self-Paced Loops Without Wakeups
When setting up a /loop command in cloud sessions, the confirmation screen now clearly notes that a timer stops with its container, offering a loop option that survives restarts. For self-paced /loop operations, when a single turn finishes without rescheduling, the process ends directly instead of scheduling a fallback wakeup; if your automated workflows rely on the legacy behavior, set environment variable CLAUDE_CODE_LOOP_KEEPALIVE=1 to preserve it. ⟦Like a kitchen countdown timer, it previously rang repeatedly on schedule even when no tickets arrived, but now resets and stays silent once dishes are served, while reminding you before leaving that equipment shuts off when the store closes.⟧
Original changelog
Added a note to /loop confirmations in cloud sessions that a timer stops with its container, with an offer of a loop that survives
Changed self-paced /loop to end when a turn finishes without rescheduling, instead of scheduling a fallback wakeup; set CLAUDE_CODE_LOOP_KEEPALIVE=1 to keep the old behavior
Slash Commands Support Leading Whitespace, Recommending Correct Model Names on Typos
Typing in the terminal is now more forgiving and fluid. If you accidentally include a leading space, tab, or newline before a slash command, it was previously sent to Claude as plain text, but is now recognized and executed as a command. When you mistype a model name (such as opus-5-5), the CLI no longer misleads you to update versions, actively suggesting the model you meant instead. In the /model picker, older models are now grouped under a "More models" row. When answering questions in screen reader mode, typing an "Other" answer lets you press Ctrl+G at any time to open the external editor. Finally, if /rename cannot save a new name to the session transcript, it now warns that the new name may not last.
Original changelog
Fixed slash commands typed after a leading space, tab or newline being sent to Claude as plain text instead of running
Fixed a mistyped model name, such as opus-5-5, telling you to update Claude Code instead of suggesting the model you meant
Fixed Ctrl+G not opening the external editor while typing an "Other" answer to a question in screen reader mode
Fixed /rename reporting plain success when the new name could not be saved to the session transcript; it now warns that the new name may not last
Improved the /model picker: older models are now grouped under a "More models" row instead of being listed after the current ones
Terminal Hyperlinks Open Across Wrapped Lines, Path Refusals Hint at Letter Casing
Terminal readability and interaction details have been improved across multiple terminal environments. In Ghostty over tmux (a terminal multiplexer), an issue where Cmd+click could not open links in sessions launched from the agents view is now resolved. When help links in /status or auto mode billing notices wrap due to window width, a bug that opened only the first part of the address has been fixed. On macOS and Windows, when access to a path outside the working directories is refused and differs only by letter case from an internal path, the refusal message explicitly names that spelling. Furthermore, the contrast of faint gray secondary text—including hints, details in /stats, /model, /sandbox, and rejected-action messages—has been increased. ⟦In the manner of a library updating its directory signs, long addresses previously broke across line wraps while dim lighting obscured catalog notes; now signs deepen text contrast and directional cues become noticeably clearer.⟧
Original changelog
Fixed Cmd+click not opening links in Ghostty over tmux in sessions opened from the agents view
Fixed help links in /status and the auto mode billing notice opening only part of the address when they wrap
Improved the refusal for a path outside the working directories on macOS and Windows: when only its letter case differs from a path inside them, the message names that spelling
Improved the contrast of faint gray secondary text, such as hints, details in /stats, /model and /sandbox, and rejected-action messages
Context Summary Table Compacted, Grouping On-Demand Tools to Conserve Token Usage
When checking current conversation usage, running /context incurs noticeably lower overhead. Previously, running the command in the terminal sent the full visual grid to Claude on every later turn, consuming substantial tokens (units of text processed and billed by AI). Claude is now fixed to read only the plain-text table. This table is also compacted so each list keeps only its 10 largest rows. Meanwhile, on-demand MCP (Model Context Protocol, a protocol connecting AI to external tools) tools share one row per server until called. ⟦Resembling a financial audit meeting, presenters previously projected full hundred-page ledgers on every remark, but now summarize only the top ten expenses while grouping scattered items under their parent departments.⟧
Original changelog
Fixed /context sending its full visual grid to Claude on every later turn; Claude now reads only the table
Improved /context at the terminal so the table Claude reads stays short: each list keeps its 10 largest rows, and MCP tools that load on demand share one row per server until they're called
Artifact database writes gain marker protection, while web fetching prompts pasting shared chats
Multiple operational hints and file protection mechanisms have been improved when using the Artifact database feature. A previously refused issue when reading the database and saving to a destination folder using out_dir has been resolved; error messages now provide more specific guidance when updates target nonexistent documents or when the service pauses repeated refused writes. When saving rows that others may have written, a hidden marker file is created, and existing files lacking this marker (including exports from earlier versions) are left alone and reported. Artifacts without a database no longer futilely retry database calls and clearly indicate whether republishing helps. In addition, fetching claude.ai shared chat links with the web-fetching tool no longer misreports them as empty pages, but clearly states they cannot be read and suggests pasting the conversation directly into the input box.
Original changelog
Fixed WebFetch describing claude.ai shared-chat links as empty pages; it now says shared chats can't be read and to paste the conversation instead
Fixed Artifact database calls being re-sent to artifacts without a database; errors now say whether republishing helps
Fixed a case where artifact database reads that save to a folder (out_dir) were refused
Improved the artifact database error when an update targets a document that does not exist, and when the service pauses repeated refused writes
Changed artifact database saves of rows others may have written: each file gets a hidden marker file, and existing files without one, earlier versions' exports among them, are left alone and reported
Chrome extension auto-checks interrupted connections, retaining JavaScript tool results in conversation
Interruption recovery and web workflows have been improved when using the Claude in Chrome browser extension. If a connection drops mid-action, the tool no longer arbitrarily reports the extension as disconnected; instead, it checks the current page state before repeating an action that may have already executed, and waits up to 6 seconds after a brief disconnect for the session's original browser to return before selecting another. Returned content from the JavaScript tool javascript_tool of up to 60,000 characters now stays directly in the current conversation instead of being forced into an external file. In addition, built-in tools no longer include shortcuts_list and shortcuts_execute, which previously listed and launched shortcuts saved in the extension. ⟦An online shopper encounters a sudden connection drop during payment: upon reconnecting, the system first verifies transaction records rather than charging twice, waits briefly for the initial connection to recover, and displays details right on screen without needing a separate receipt.⟧
Original changelog
Fixed Claude in Chrome reporting the extension as not connected when the connection dropped mid-action; Claude now checks the page before repeating an action that may have run
Improved Claude in Chrome after a brief disconnect: it waits up to 6 seconds for the session's own browser to return before picking another
Improved Claude in Chrome: javascript_tool results of up to 60,000 characters now stay in the conversation instead of being saved to a file
Removed shortcuts_list and shortcuts_execute, which listed and started shortcuts saved in the extension, from Claude Code's built-in Claude in Chrome tools
Self-hosted runner isolates workspace naming, disables untrusted hooks, and exits early on failed self-checks
Security isolation and multi-project handling mechanisms have been strengthened when maintaining runners in enterprise self-hosted environments. Specifying --trust-workspace false now also prevents hooks in repository configuration files and skills from running, in addition to existing protections. Runners started with --use-anthropic-git-proxy or --configure-git will now exit first if a startup self-check fails, rather than registering with the server beforehand. If the server repeatedly refuses to renew model access, the runner retries sooner and posts a warning in the session. When CLAUDE_RUNNER_CHECKOUT_PATH is configured, each repository within the same session receives its own dedicated folder, with duplicate folder names automatically separated by numeric suffixes. Furthermore, debug logs are no longer uploaded after a session ends; logs from failed sessions remain on the runner host unless --remove-session-state is set.
Original changelog
Fixed self-hosted runner sessions failing with no explanation when the server keeps refusing to renew model access: the runner now retries sooner and posts a warning in the session
Fixed self-hosted runners: --trust-workspace false now also stops hooks in the repository's settings files and skills from running
Self-hosted runner: Fixed a runner started with --use-anthropic-git-proxy or --configure-git registering before a failed startup check made it exit; it now exits first
Self-hosted runner: Changed CLAUDE_RUNNER_CHECKOUT_PATH so that each repository in a session gets its own folder: a folder name already taken in the session gets -2, -3, … at the end
Self-hosted runner: Removed the end-of-session upload of a session's debug log; a failed session's log stays on the runner host unless --remove-session-state is set
Cloud sessions preserve permission rules across node migrations, keeping background agents running during pending sends
Container scheduling and permission rule transitions receive stronger safeguards when running sessions in the cloud. An issue that caused session-specific deny and ask rules to be lost when a session moved to a new worker node has been fixed. If such deny and ask rules cannot all be preserved, the session's allow rules are dropped, meaning you may be asked again. Entering /permissions no longer merely reports that it is unavailable, but clearly indicates where rules reside and how to modify them. Clicking Send now on a waiting message no longer terminates agents running in the background. Scheduled tasks encountering a connector named memory now automatically attach a short suffix to complete mounting and retain it. Additionally, links in stalled-setup warnings for self-hosted environments now prefer and explicitly name your organization's default environment or one with an active runner.
Original changelog
Fixed /permissions in cloud sessions replying only that it isn't available; it now says where the session's rules live and how to change them
Fixed cloud sessions losing session-scoped deny and ask permission rules, such as those a PermissionRequest hook adds, when the session moves to a new worker
Changed cloud sessions to drop session-scoped allow rules at a move to a new worker when their deny and ask rules can't all be kept, so you may be asked again
[Cloud sessions] Fixed scheduled tasks silently dropping a connector named memory: runs now keep it, mounted under that name plus a short suffix
[Cloud sessions] Fixed Send now on a waiting message in cloud sessions ending running background agents; they now keep running
[Cloud sessions] Improved the stalled-setup warning on self-hosted environments: its link now prefers your organization's default or an environment with a live runner, and names it
Clearing the screen preserves running background tasks, syncing the web task list and slash menu
When you want to tidy your view in the terminal, entering /clear to clear the conversation screen no longer accidentally kills running tasks. Running commands are safely preserved for background agents, teammates, workflows that keep running, and foreground subagents belonging to background agents and teammates. On the web interface, the issue where background tasks disappeared from the list after /clear until another task started or ended has been fixed. In cloud sessions on mobile and web, hidden commands that should not be public no longer mistakenly appear in the slash command menu. In addition, typing /usage in cloud sessions where plan limits cannot be directly displayed now proactively provides a hyperlink to the website settings page to view usage. ⟦Just as erasing an office whiteboard only wipes away outdated notes, the production lines and gauge monitors running in the factory behind it continue operating, and the board list stays connected and in sync across departments.⟧
Original changelog
Fixed /clear killing running commands of background agents, teammates and workflows that keep running, and foreground subagents of background agents and teammates
Fixed background tasks that keep running after /clear disappearing from the task list in Claude Code on the web until another task started or ended
Fixed hidden commands appearing in the slash command menu of cloud sessions on mobile and web
Improved /usage in cloud sessions: it now links to Settings → Usage on claude.ai in a case where plan limits can't be shown
Unlinking a GitHub organization turns off the "All repositories" review setting
For enterprise plan admin backends, permission protections and settings interfaces have received multiple enhancements. When unlinking a GitHub organization in the code review service, the "All repositories" review setting under that organization turns off automatically, and it stays off after relinking until an admin manually turns it back on. On the Models admin page for enterprise backends with Claude Tag connected, a dedicated row has been added with a link pointing directly to where its model defaults are managed. During Claude Tag setup, if the channel list cannot fully load, admins can now launch directly without picking a specific channel. In addition, concurrency conflict protection has been added when saving auto mode allow rules. If the system detects that another admin modified settings in the meantime, the save is refused with a notice, preventing settings from being overwritten silently.
Original changelog
[Code Review] Changed unlinking a GitHub organization to also turn off its All repositories setting in Code Review; it stays off after you relink until you turn it back on
[Claude Tag] Fixed Claude Tag setup blocking launch when the channel list couldn't fully load; admins can now launch without picking a channel
[Claude Tag] Added a Claude Tag row to the Models admin page for Enterprise orgs with Claude Tag connected, linking to where its model defaults are managed
[Claude Tag] Fixed saving auto mode allow rules in Claude Tag admin settings overwriting another admin's changes; the save is now refused with a message
VSCode extension protects plans on window reload, refining session and marketplace management
When reloading a window in Visual Studio Code, Claude no longer carries out unapproved plans without authorization. If a step was previously interrupted in plan mode, execution stops immediately with a notice when the session resumes in another permission mode. When opening cloud sessions from the extension's Web tab, conversation turns removed by /clear, or by Retry or Edit of an entered prompt, no longer bizarrely reappear. In addition, renaming a deleted session will not cause its file to come back. When removing a plugin marketplace, the confirmation screen now checks which of that marketplace's plugins are currently installed. When encountering an unauthenticated state behind a gateway, the prompt message appears in a prominent error style with a sign-in link. In addition, links in replies pointing to Claude sign-in, connector, or API addresses are now displayed as text showing the address instead of opening in a browser.
Original changelog
[VSCode] Improved the confirmation for removing a plugin marketplace: it now checks which of its plugins are installed at that moment
[VSCode] Fixed cloud sessions opened from the extension's Web tab bringing back turns that /clear, or Retry or Edit of a typed prompt, had removed
[VSCode] Fixed a deleted session's file coming back when that session was renamed in the extension
[VSCode] Fixed Claude carrying out an unapproved plan after a window reload: a step interrupted in plan mode now stops with a notice when the session comes back in another permission mode
[VSCode] Improved the "not signed in" message behind a Claude apps gateway: it now looks like an error and has a Sign in link
[VSCode] Changed links in Claude's replies that point at Claude sign-in, connector or API addresses to show as text with the address, instead of opening in the browser
Fixed 15
Auto mode fixes exit status on denied actions, rectifying status misreports and oversized-rule refusals
When running claude -p non-interactively on the command line, if actions are refused because no safety check was available, the exit status code for text and JSON outputs is now properly set to 1 instead of mistakenly returning 0 for success. An issue where auto mode was wrongly refused when a client sent a model change and a request for auto mode back to back has been resolved. Entering /status also no longer incorrectly displays that the server side is enabled when reviews fail to reach the session behind an LLM gateway. When permission rules or autoMode settings are extremely large, executions previously refused without explanation now provide a clear reason, and prompt you in the terminal unless autoMode deny rules are explicitly configured. ⟦Think of customs rejecting a shipment where the receipt mistakenly printed "Success" in the past: it now prints "Failure," leaving the rejected outcome unchanged while ensuring the slip no longer misreports the status.⟧
Original changelog
Fixed claude -p exiting 0 in auto mode when its actions were refused because no safety check was available: text and JSON output now exit 1
Fixed a case where auto mode was wrongly refused when a client sent a model change and a request for auto mode back to back
Fixed /status showing "Auto mode server: Enabled" when the server-side review isn't reaching the session, for example behind an LLM gateway that drops it
Fixed auto mode refusing actions without saying why when permission rules or autoMode settings are very large: it now explains and, unless autoMode deny rules are set, asks you in the terminal
Fixes for legacy MCP handshake connections, post-resume result delivery, and Desktop rules
When connecting to external tool servers that use an older handshake, failures to connect or empty results caused by declaring extensions reserved for newer servers have now been fixed. For long-running tool calls on claude.ai connectors, where result reports were sometimes lost after resuming a session, results are now properly retrieved. When running claude -p --resume with a prompt while the corresponding tool server is missing, the process now exits with code 1, keeps the call, and refuses subsequent input to prevent deferred tool calls from vanishing. In Claude Desktop, an issue where deny and ask rules, disallowedTools entries, and hook (small programs triggered by specific events) matchers written with connector terminal names like mcp__claude_ai_Slack were ignored has also been corrected, though this takes effect once the desktop version incorporates this release.
Original changelog
Fixed MCP servers on the older handshake failing to connect, or returning empty results, because Claude Code declared an extension that it only uses with newer servers
Fixed a long-running MCP tool call on a claude.ai connector sometimes never reporting its result after --resume
Fixed claude -p --resume with a prompt losing a deferred tool call when its MCP server is missing: the run now exits 1, keeps the call and refuses later input
Fixed a case where deny and ask rules, hook matchers and disallowedTools entries written with a claude.ai connector's terminal name (mcp__claude_ai_Slack) were ignored in Claude Desktop (takes effect once Claude Desktop includes this version)
Fixes for Bash permission check quote misses, environment prefix bypasses, and timeout read-only prompts
When restricting Bash commands in security rules, several command-parsing loopholes have now been fixed. Previously, commands containing quoted words could slip past deny and ask rules, while a crafted environment variable prefix could hide parts of a command from inspection; both gaps have now been resolved. A vulnerability where specific sed commands could skip permission checks under accept-edits and auto mode has also been patched. At the same time, wrapping read-only commands in a plain timeout DURATION, such as timeout 30 rg foo, no longer triggers needless permission prompts. Where read-only commands wrapped in timeout were previously prompted an extra time and commands with quotes or environment variable prefixes could slip past deny rules, these flaws are now all fixed.
Original changelog
Fixed a case where Bash deny and ask rules missed commands written with quoted words
Fixed needless permission prompts for read-only commands wrapped in a plain timeout DURATION, such as timeout 30 rg foo
Fixed a case where a sed command could skip the permission check in accept-edits and auto mode
Fixed a Bash permission bypass where a crafted environment prefix could hide part of a command from permission checks
Proxy support adds TLS inspection handshake repair, clarifying environment variable locations
Behind a proxy where the local machine has no DNS (a service that resolves domain names), setting CLAUDE_CODE_PROXY_RESOLVES_HOSTS prevents Monitor's WebSocket watch from failing with host resolution errors. Where the host manages the network, this variable must be set in the process environment and can no longer be defined by settings files. When Monitor encounters a Bash deny rule, it refuses the watch. Under an ask rule, an allow on Monitor, bypass permissions mode, and auto mode can no longer skip the prompt. Behind a TLS-inspecting proxy, when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set, Claude Code performs a TLS handshake with the configured API host following a certificate failure—connecting through your http:// proxy if one is configured—without sending any API request. Automatic certificate repair no longer triggers when ALL_PROXY is the only proxy variable set; you must set HTTPS_PROXY to the proxy's http:// address instead.
Original changelog
Fixed Monitor's WebSocket watch failing with "could not resolve" behind a proxy when CLAUDE_CODE_PROXY_RESOLVES_HOSTS is set and the machine has no DNS of its own
Fixed a case where certificate errors behind a TLS-inspecting proxy persisted when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC was set. With it set, Claude Code now makes a TLS handshake with the configured API host after a certificate failure, through your http:// proxy if one is set; it sends no API request
Changed Monitor's WebSocket watch to follow a rule on every Bash command: a deny refuses it, and under an ask rule an allow on Monitor, bypass mode or auto mode no longer skips the prompt
Changed CLAUDE_CODE_PROXY_RESOLVES_HOSTS so that settings files can no longer set it where the host manages the network; set it in the process environment
Changed the automatic certificate repair behind a TLS-inspecting proxy: it no longer runs when ALL_PROXY is the only proxy variable set. Set HTTPS_PROXY to the proxy's http:// URL instead
Account Switching Warns of Console Billing Organization, Fixing Chained 401 Login Refresh Errors
When your personal claude.ai login expires, if the system continues on the sign-in from ant auth login, the terminal displays a warning and names at startup which Claude Console organization is billed. For authentication, a bug was fixed where a request that kept failing with a 401 error refreshed your login on every retry, triggering a chain of 401 errors across your other terminal sessions. A half-second hang after pressing Enter on the /login success screen has also been resolved: the dialog dismisses immediately while the post-login refresh runs in the background. Furthermore, a terminal whose sign-in for the Claude apps gateway has expired no longer sends telemetry and managed-settings requests that the gateway refused and logged as invalid_token. Previously, one stuck request could cause 401s in other sessions; that issue is now fixed.
Original changelog
Added a warning when your claude.ai login ends and Claude Code continues on the sign-in from ant auth login, which bills usage to your Claude Console organization
Added a line at startup naming the Claude Console organization that is billed in a case where Claude Code uses the sign-in from ant auth login
Fixed a request that kept failing with a 401 refreshing your login on every retry and causing 401s in your other sessions
Fixed a ~0.5s hang after pressing Enter on the /login success screen: the dialog now dismisses immediately and the post-login refresh runs in the background
Fixed a terminal whose Claude apps gateway sign-in had expired sending telemetry and managed-settings requests that the gateway refused and logged as invalid_token
Fix Diff Loading Failures with HEAD Files and Blank Panes in Multi-Turn Sessions
When inspecting modifications, if the folder where Claude Code runs contains a file or folder named HEAD, a session's diff previously failed to load on claude.ai and the mobile apps; if a Git repository has such a file or folder at its top level, /diff showed "Diff unavailable". In addition, in sessions where 64 or more turns edited files, the /diff pane could open completely blank. These loading failures and blank pane issues have now been fixed.
Original changelog
Fixed a session's diff failing to load on claude.ai and the mobile apps when the folder Claude Code runs in has a file or folder named HEAD
Fixed /diff showing "Diff unavailable" when a git repository has a file or folder named HEAD at its top level
Fixed the /diff pane opening blank in sessions where 64 or more turns edited files
Fix Code Rewind Errors Before Branch Creation, Closing Symlink and Worktree Exploits
When using /rewind to restore code, version switching is significantly safer and more reliable. If you attempt to restore project code to a checkpoint from before running /branch, the command previously failed with "No files were restored", but now restores accurately. In path handling, an issue where /rewind could restore or delete a file through a directory symlink (a shortcut file pointing to another location) has been fixed. Additionally, a vulnerability where creating a worktree (a Git feature allowing parallel copies of the same project) could escape the security sandbox was closed. Where rewinding previously stumbled at branch boundaries, restoring across branches is now resolved.
Original changelog
Fixed /rewind failing with "No files were restored" when restoring code to a checkpoint from before /branch
Fixed a case where /rewind could restore or delete a file through a directory symlink
Fixed a sandbox escape when creating a worktree
Fix Network File System Startup Scans, Refining File Writes and Background Command Output Capture
When opening projects on Linux over network file systems (including NFS, SMB, and Lustre), an issue where startup scanned and listed every project file has been eliminated. The Write tool no longer ends the turn as a refusal when failing to read the original file to overwrite. For command execution, fixes resolve issues where background Bash commands that finish almost instantly lost output when marked completed, as well as diffs missing files written just before command completion. When using the notebook editor (NotebookEdit), a bug where modifying the wrong cell occurred if notebook contents changed during permission prompts has been fixed. Additionally, claude purge and old session cleanup now retry folders that could not be fully deleted, reporting an error if they still remain.
Original changelog
Fixed a case where Claude Code listed every project file at start on Linux for projects on a network file system (NFS, SMB, Lustre and similar)
Fixed Write ending the turn as a refusal when it couldn't read the file to overwrite
Fixed background Bash commands that finish almost instantly losing their output while being reported as completed
Fixed the Bash tool's diff of changed files missing a file that the command wrote just before it ended
Fixed a case where NotebookEdit changed the wrong cell when the notebook changed while a permission prompt was open
Improved claude purge and the clean-up of old sessions to retry a folder that could not be fully deleted, and to report it as an error if it remains
Surveys and feedback prompts stop appearing after server refusal, and third-party gateways stop drafting feedback
After the server refuses feedback for your organization, satisfaction surveys, Claude-drafted feedback, and /feedback will no longer keep popping up in the terminal. In addition, Claude no longer drafts feedback on third-party gateways where it cannot be sent. ⟦A building's security desk notes a clear policy against visitor surveys: while forms previously still reached individual offices, the front desk now blocks them all to restore complete quiet to the work environment.⟧
Original changelog
Fixed Claude-drafted feedback, surveys and /feedback continuing to appear after the server refused feedback for your organization
Fixed Claude drafting feedback on third-party gateways, where it can't be sent
Agent SDK enhances error reporting and telemetry, running hooks for tools finished after interruptions
Debugging and monitoring are now more precise when developing automated applications with the Agent SDK. Informational messages sent to clients no longer drop text, and when a host disk is full, you receive the specific failure reason instead of a generic exit code. Telemetry metrics are also more accurate, as pre-started processes are no longer counted early in session counts, counting only once when they are actually claimed. Detailed beta tracing now provides CLAUDE_CODE_CLIENT_CERT to collectors that require client certificates. Tool calls that finish after a new message interrupts a turn still run PostToolUse hooks (small programs triggered after a tool completes), giving the hook up to 10 seconds to finish. If an execution was previously interrupted in plan mode, the environment variable CLAUDE_CODE_RESUME_INTERRUPTED_TURN will no longer rerun that turn without reason when resuming in another permission mode.
Original changelog
Fixed a case where text was dropped from informational messages sent to SDK clients
Fixed a case where Agent SDK hosts got a generic exit-code error instead of a failed run's own error message when the disk was full
Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that was interrupted in plan mode when the session resumes in another permission mode
Fixed detailed beta tracing not presenting CLAUDE_CODE_CLIENT_CERT to collectors that require a client certificate
Fixed the OpenTelemetry claude_code.session.count metric counting Agent SDK prewarm() processes that were never claimed; a pre-started process now counts once, when it is claimed
Changed PostToolUse hooks to run, with up to 10 seconds to finish, on tool calls that finish after a new message interrupts the turn
Plugin updates automatically install new dependencies, and directories register marketplaces only after trust
When an installed plugin releases a new version, newly added dependencies are installed whether through background auto-updates, manually entering claude plugin update, or choosing "Update now" in /plugin. Directories introduced via --add-dir register plugin marketplaces only after their own trust dialog has been accepted. A plugin-provided subagentStatusLine command now properly expands the environment variable ${CLAUDE_PLUGIN_ROOT}, making it convenient to reference the plugin's own scripts directly. When running plugin evaluations, warnings no longer suggest max: 0 for tools that must not be called, which could never pass.
Original changelog
Fixed claude plugin eval warnings suggesting max: 0 for a tool that must not be called, which could never pass
Fixed background plugin auto-update not installing a dependency added by the updated plugin version
Fixed ${CLAUDE_PLUGIN_ROOT} not being substituted in a plugin-provided subagentStatusLine command, which can now reference the plugin's own scripts
Fixed claude plugin update and /plugin "Update now" not installing dependencies added by the new plugin version
Changed --add-dir directories to register plugin marketplaces only once that directory's own trust dialog has been accepted
Mod hot reloading fixes file watching, while sandbox mode restricts nested directory loading
When developing and debugging mods (custom modules), hot reload previously could miss a file that was deleted right after appearing as well as its return. Hot reload is the mechanism that applies changes without restarting; in .claude/skills, neither of these file changes is missed now. In cloud sessions, typing three consecutive messages instead of answering a module's question will no longer cause mod hot reload to turn off unexpectedly for that session. In addition, with the Bash sandbox enabled, skill folders below the starting folder no longer load automatically by default, requiring you to start the tool in that subdirectory or switch there using /cd to load them.
Original changelog
Fixed a mod's hot reload in .claude/skills missing a file that was deleted just after it appeared, and missing its return
Fixed mod hot-reloading turning off for the session when you typed three messages instead of answering its question in a cloud session
Changed nested skill loading: with the Bash sandbox on, skills in .claude/skills folders below the starting folder load only if you start Claude Code there or /cd there
Agent management view preserves unsent drafts, fixing background session replies and preview formatting
In the terminal's multi-agent management view, the experience of switching and operating across different sessions has been improved. When a background session is waiting at a permission prompt, sending a reply in the management view no longer appears as if it was sent; your input stays in the text box with a prompt to open that session and reply. When multiple management views run in the same directory, one view exiting or restarting for an update will no longer mistakenly delete or load draft text saved by another view. For command previews, long commands, results, and status lines (bars displayed at the very bottom of the terminal) now include an ellipsis when truncated, while bold text, backticks, and tags are fully preserved in commands waiting for approval. These reply, draft, and preview issues have been resolved.
Original changelog
Fixed the agents view appearing to send a reply to a background session waiting on a permission prompt; the reply now stays in the box with a hint to open the session and answer
Fixed agent view removing a draft saved by another agent view in the same directory when exiting
Fixed a case where agent view came back with another agent view's input text after restarting itself for an update
Fixed the agents view preview cutting off long commands, results and status lines without an ellipsis, and dropping **, backticks and tags from commands waiting for approval
Remote control handles first-run prompts, accepts piped y without a trailing newline, and syncs externally lifted usage limits
Error handling for scripts and automation integrations has been reinforced when connecting remotely with claude remote-control. When a first-run question receives no response (such as when running in background services, batch jobs, or pressing Ctrl+C), the tool no longer silently exits with status 0 representing success, but explains why and exits with status 1. Passing a piped letter y without a trailing newline is now also correctly treated as confirmation. Across devices, when a usage limit is lifted externally, remote sessions on other devices no longer stay stuck on "Limit reached". An issue where the Claude iOS app occasionally missed the file card when Claude sent a single file has also been fixed. Additionally, idle background sessions started through environment-variable gateway routing no longer disconnect from the gateway unexpectedly after an update.
Original changelog
Fixed Remote Control sessions still showing "Limit reached" on other devices after a usage limit was lifted outside the session
Fixed the file card sometimes missing in the Claude iOS app when Claude sent a single file
Fixed a case where idle background sessions started through a shell-exported LLM gateway left the gateway after an update
Fixed claude remote-control exiting silently with status 0 when a first-run question gets no answer (scripts, services, batch jobs, Ctrl+C); it now says why and exits 1
Fixed claude remote-control ignoring a piped y that has no newline after it at the first-run question; it now counts as a yes
VSCode extension protects long prompts in the input box and improves dictation and chat panel performance
When using the Claude extension in the Visual Studio Code editor, interactive performance in the chat panel has received comprehensive improvements. When entering extra-long prompts exceeding 50,000 characters, the content is no longer cut off silently. Instead, it stays in the chat box with a notice, and pasting text over the limit is explicitly refused. Clicking the survey or "Report a problem" buttons no longer accidentally sends an unfinished draft. Running the dictation command claude-vscode.toggleDictation acts only on the currently used Claude view, and pressing it again stops it. Dragging a file whose path contains a very long run of consecutive / characters no longer freezes the panel, nor does the panel stutter while a reply streams in with many unclosed $$ math blocks that are each shorter than the last. Furthermore, the diagnostics tool for large workspaces now automatically skips files with no problems, supports specifying a severity threshold, and returns compact JSON format.
Original changelog
[VSCode] Fixed prompts over 50,000 characters being cut off silently: the prompt now stays in the chat box with a notice, and a paste over the limit is refused with a notice
[VSCode] Fixed a click on the survey or "Report a problem" buttons sending the unfinished prompt
[VSCode] Fixed a possible chat panel freeze when a dropped item's path contains a very long run of "/" characters
[VSCode] Fixed the claude-vscode.toggleDictation command starting dictation in every open Claude view at once; it now acts only in the view you are using, and a second press stops it
[VSCode] Fixed the chat panel slowing down while a reply with many unclosed $$ math fences, each shorter than the last, streams in
[VSCode] Improved the chat panel's diagnostics tool for large workspaces: it leaves out files with no problems, returns compact JSON, and accepts an optional minimum severity