Claude Code 2.1.316
Released31 Oct 202631 Oct 2026. 55 items: 10 added, 34 fixed, 5 improved, 5 changed, 1 removed or reverted.
- MCP
- 2
Security4
- FIX Fixed shell commands being left running on macOS and Linux when Claude Code exits by itself, for example when credentials are refused or a cloud session is archived
-
FIX
Fixed plugin MCP
headersHelperscripts receiving a corruptedCLAUDE_PLUGIN_ROOTand server URL when a credential-named environment variable was set to a switch value such as1 - FIX Fixed first-run setup dropping words from the security notes and the terminal-setup explanation in narrow terminals
- CHG [Cloud sessions] Changed network secrets so Enterprise members can add and delete them on their own cloud environments, instead of only viewing them
MCP2
- FIX Self-hosted runner: Fixed an MCP server's on/off switch sometimes being lost when a session moved to a new machine
- ADD [Cloud sessions] Added a form card to cloud sessions, so you can fill in or decline a form an MCP server asks for instead of the request being canceled without you seeing it
Hooks1
-
FIX
Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast,
param,usingor an attribute
SDK and headless2
-
FIX
Fixed
claude -ptext output sometimes not saying why auto mode stopped a turn when a background agent was still running -
FIX
Fixed the SDK
register_repo_rootcontrol request not loading the CLAUDE.md of a directory outside the working directory (withCLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1)
Agents3
-
ADD
Added
CLAUDE_CODE_SUBAGENT_EFFORTto set the effort level subagents run at when nothing else names one, instead of inheriting the session's - FIX Fixed sub-agents that inherited a parent sub-agent's model moving to the main model when a background job or message woke them
-
IMP
Improved the messages shown when
/ultrareview, a cloud session or a cloud agent finds no GitHub remote: they now say to create a repository at https://github.com/new, and/ultrareviewno longer suggests aghcommand thatghrejects
IDE and desktop7
-
FIX
Fixed
CLAUDE_CODE_AUTO_MODE_SERVER=1being ignored in sessions started by a host application (such as Claude Desktop) behind a proxy or LLM gateway with experimental betas turned off -
IMP
Improved
/code-reviewstarted from the Code tab in Claude Desktop or on the web: cloud andclaude remote-controlsessions now show the findings card, not a plain-text list - ADD [VSCode] Added sign-in to a Claude apps gateway from the chat panel, with no terminal needed
-
CHG
[VSCode] Changed
ultrathinkto run its turn atxhigheffort and show in a rainbow in the chat box, as in the terminal -
FIX
[VSCode] Fixed the missing Effort slider, Ultracode switch and model name when the model setting has the
[1m]tag, such asopus[1m] -
FIX
[VSCode] Fixed saved
/btwside-question history being deleted too early while a settings file has errors - FIX [VSCode] Fixed a conversation coming back in Auto mode after a reload or restart when its plan was approved with "Yes, and manually approve edits"
Commands4
-
FIX
Fixed a managed
autoMode.allowlist without"$defaults"getting the built-in exceptions back from a host app's--settings, a first rule added in/permissions, or/auto-mode-setup -
FIX
Fixed
/model <id>not warning when the model isn't recognized by this version and auto-compact will assume a 200K context window -
FIX
Fixed a rare case where resuming a conversation did not restore its plan, when
/clearor/resumehad been run while part of that conversation was still being saved -
IMP
Improved
/diffon large repositories: each refresh usually runs one fewer full-repository git command, and refreshes are spaced out when git is slow
Settings6
-
ADD
Added
CLAUDE_CODE_DISABLE_ULTRATHINK, which turns theultrathinkkeyword off -
ADD
Added
CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROPto keep system cross-certificates that certify each other in a loop, for servers whose private CA needs one -
FIX
Fixed bash scripts started from the Bash tool stopping after their first command when
SHELLOPTSis exported -
FIX
Fixed
claude auth loginrefusing to run where managed settings require a Claude apps gateway; in a terminal it now shows the gateway sign-in - CHG Changed server-managed settings for Team and Enterprise logins: settings fetched from Anthropic's API now apply without an approval prompt, and a stored copy that doesn't verify is refused
- CHG [Claude Tag] Changed a Slack channel's Respond automatically switch to a "How Claude participates" choice on the channel's Configure page and in Claude Tag admin settings
Permissions2
- FIX Fixed cloud sessions and cloud scheduled tasks not being marked as failed when auto mode stopped a turn because the server returned no safety verdict
-
CHG
Changed auto mode so that an
autoMode.allowlist without"$defaults"no longer removes the built-in rule on scheduled-task prompts
Models and providers4
-
ADD
Added
guardrail.input_taggingon Claude apps gateway Bedrock upstreams, which wraps prompts in the input tags that an Amazon Bedrock guardrail's prompt attacks filter needs;all_messages_and_systemalso tags the system prompt - REM Deprecated fast mode for Opus 4.8 as of October 30, 2026; it will be removed on November 30, 2026. After removal, fast mode requests on Opus 4.8 return an error and do not fall back to standard Opus 4.8. Migrate to Opus 5.5 to keep the speedup
-
FIX
Fixed
sonnet,opusandhaikuon Vertex AI and Amazon Bedrock showing an error mid-session instead of switching to an older model when the newest is not yet available to the account or region -
FIX
Fixed the Claude apps gateway not checking every model a request names against
availableModels,deniedModelsandmodels; a request that names a blocked model now gets a 400 naming the field
Performance1
- FIX Fixed some network requests hanging when a compressed response was cut off or corrupted
Terminal and input1
- FIX Fixed the "hold space to speak" hint using up its three showings in one session, and showing an empty key when push-to-talk is unbound
Sessions and context5
-
FIX
Fixed
--restrictedsessions uploading files from outside the working directories when a Read allow rule covered them - FIX Self-hosted runner: Fixed a message sent while Claude was working being answered after a Stop, once the session's process had been replaced
- ADD [Cloud sessions] Added a "Catching up…" line that shows while a cloud or Remote Control session you switch back to is still bringing its messages up to date
- IMP [Cloud sessions] Improved the Changes pane for cloud sessions: the note about what the list leaves out is now a badge beside the branch name, not a row above the diff
- FIX [Cloud sessions] Fixed file search in a cloud session's Files pane showing folders as ../.. paths after Claude changed directory; results now show their path from the project's root
Built-in tools4
- FIX Fixed bash aliases with line breaks in their value (except in Git Bash), and functions whose names start with a dash, being garbled or lost in the Bash tool's shell
-
FIX
Fixed the Artifact tool showing
?for artifact database access rules at theselflevel, and not quoting those rules back when it refuses a republish that would drop them - FIX Fixed Grep and Glob never returning when the search process is killed at the timeout but does not exit, seen on Windows
- FIX Windows: Fixed the Bash tool losing your aliases and functions in Git Bash when the rc file sets errexit and pipefail and only winpty aliases, or none, are defined
Everything else9
-
ADD
Added pooled group budgets to the Claude apps gateway: one monthly budget that a group's members share, on top of each member's own limit, set with
pooled_budgeton the spend limits admin API -
ADD
Added
managed.policy_mode: layeredto the Claude apps gateway: every policy that matches a developer applies, each merged over the ones listed below it, not only the first - FIX Fixed prompts containing invisible characters needing a second Enter to send; plain prompts now send cleaned on the first Enter, and commands still wait for review
- FIX Fixed the Enterprise survey card taking a typed 1 or 0 after a short pause; a typed answer now needs Enter
- IMP Improved SSL certificate errors to name the likely causes, among them a server that leaves out an intermediate certificate, and the fix for each
- FIX [Claude Tag] Fixed Claude refusing to edit or append to a canvas it made in a Slack channel, from that channel, once the canvas was also shared to another channel or a DM
- FIX [Claude Tag] Fixed untagged replies going unanswered in a Slack Connect thread when both organizations have installed Claude and Slack delivered the reply to the other organization's app
- FIX [Claude Tag] Fixed a cloud scheduled task's live status checklist in Slack staying half-done; a run can now edit the top-level messages it posted during that run
- ADD [Code Review] Added a findings-by-severity card to the Code Review analytics page, showing the period's total findings, a daily chart stacked by severity, and each severity's count