Claude Code 2.1.316
55changes- Sign in to a Claude apps gateway from the VS Code chat panel, with no terminal needed.
- Fill in or decline a cloud session's MCP server form instead of it being silently canceled.
- Add CLAUDE_CODE_DISABLE_ULTRATHINK to turn off the ultrathink keyword.
- Fix --restricted sessions uploading files from outside the working directories when a Read allow rule covered them.
- Fix the Claude apps gateway not checking every model a request names against the allow and deny lists.
New features
10[VSCode] Sign in to gateway from chat panel
Added sign-in to a Claude apps gateway from the chat panel, with no terminal needed
[Cloud sessions] Add MCP form card
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
Add CLAUDE_CODE_DISABLE_ULTRATHINK flag
Added CLAUDE_CODE_DISABLE_ULTRATHINK, which turns the ultrathink keyword off
Add CLAUDE_CODE_SUBAGENT_EFFORT flag
Added CLAUDE_CODE_SUBAGENT_EFFORT to set the effort level subagents run at when nothing else names one, instead of inheriting the session's
More changes (6) Fewer changes
Add pooled group budgets to gateway
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_budget on the spend limits admin API
Add CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP flag
Added CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP to keep system cross-certificates that certify each other in a loop, for servers whose private CA needs one
Add layered policy mode to gateway
Added managed.policy_mode: layered to the Claude apps gateway: every policy that matches a developer applies, each merged over the ones listed below it, not only the first
Add guardrail input tagging for Bedrock
Added guardrail.input_tagging on 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_system also tags the system prompt
[Cloud sessions] Show catching-up status
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
[Code Review] Add findings-by-severity card
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
Improvements
10Speed up /diff on large repositories
Improved /diff on large repositories: each refresh usually runs one fewer full-repository git command, and refreshes are spaced out when git is slow
Apply verified managed settings without prompt
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
Keep built-in rule for scheduled-task prompts
Changed auto mode so that an autoMode.allow list without "$defaults" no longer removes the built-in rule on scheduled-task prompts
More changes (7) Fewer changes
Show findings card for /code-review
Improved /code-review started from the Code tab in Claude Desktop or on the web: cloud and claude remote-control sessions now show the findings card, not a plain-text list
Improve no-GitHub-remote messages
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 /ultrareview no longer suggests a gh command that gh rejects
Name likely causes in SSL cert errors
Improved SSL certificate errors to name the likely causes, among them a server that leaves out an intermediate certificate, and the fix for each
[VSCode] Match terminal ultrathink behavior
Changed ultrathink to run its turn at xhigh effort and show in a rainbow in the chat box, as in the terminal
[Cloud sessions] Allow managing network secrets
Changed network secrets so Enterprise members can add and delete them on their own cloud environments, instead of only viewing them
[Cloud sessions] Move Changes pane note to badge
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
[Claude Tag] Replace auto-respond switch
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
Bug fixes
34Send cleaned prompts on first Enter
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 restricted session upload boundary
Fixed --restricted sessions uploading files from outside the working directories when a Read allow rule covered them
Enforce model allow/deny lists on gateway
Fixed the Claude apps gateway not checking every model a request names against availableModels, deniedModels and models; a request that names a blocked model now gets a 400 naming the field
More changes (31) Fewer changes
Fix shell commands left running on exit
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 bash aliases and dash-named functions
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 bash scripts stopping with SHELLOPTS
Fixed bash scripts started from the Bash tool stopping after their first command when SHELLOPTS is exported
Fix PowerShell hook exit code 2 blocking
Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast, param, using or an attribute
Fix hangs on corrupted compressed responses
Fixed some network requests hanging when a compressed response was cut off or corrupted
Fix Vertex/Bedrock model fallback error
Fixed sonnet, opus and haiku on 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 auth login under gateway policy
Fixed claude auth login refusing to run where managed settings require a Claude apps gateway; in a terminal it now shows the gateway sign-in
Fix subagent model reverting on wake
Fixed sub-agents that inherited a parent sub-agent's model moving to the main model when a background job or message woke them
Restore built-in autoMode exceptions correctly
Fixed a managed autoMode.allow list without "$defaults" not getting the built-in exceptions back from a host app's --settings, a first rule added in /permissions, or /auto-mode-setup
Mark cloud sessions failed on no verdict
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
Explain auto mode stop with background agents
Fixed claude -p text output sometimes not saying why auto mode stopped a turn when a background agent was still running
Fix CLAUDE_CODE_AUTO_MODE_SERVER being ignored
Fixed CLAUDE_CODE_AUTO_MODE_SERVER=1 being ignored in sessions started by a host application (such as Claude Desktop) behind a proxy or LLM gateway with experimental betas turned off
Fix headersHelper env corruption
Fixed plugin MCP headersHelper scripts receiving a corrupted CLAUDE_PLUGIN_ROOT and server URL when a credential-named environment variable was set to a switch value such as 1
Fix register_repo_root CLAUDE.md loading
Fixed the SDK register_repo_root control request not loading the CLAUDE.md of a directory outside the working directory (with CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1)
Fix Artifact self-level access rule display
Fixed the Artifact tool showing "?" for artifact database access rules at the self level, and not quoting those rules back when it refuses a republish that would drop them
Warn on unrecognized /model context size
Fixed /model <id> not warning when the model isn't recognized by this version and auto-compact will assume a 200K context window
Fix hold-to-speak hint display
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
Fix Grep/Glob hang on timeout kill
Fixed Grep and Glob never returning when the search process is killed at the timeout but does not exit, seen on Windows
Fix plan not restored on resume
Fixed a rare case where resuming a conversation did not restore its plan, when /clear or /resume had been run while part of that conversation was still being saved
Fix dropped words in narrow terminals
Fixed first-run setup dropping words from the security notes and the terminal-setup explanation in narrow terminals
Require Enter on Enterprise survey card
Fixed the Enterprise survey card taking a typed 1 or 0 after a short pause; a typed answer now needs Enter
Fix self-hosted runner message after Stop
Self-hosted runner: Fixed a message sent while Claude was working being answered after a Stop, once the session's process had been replaced
Fix MCP toggle lost on runner migration
Self-hosted runner: Fixed an MCP server's on/off switch sometimes being lost when a session moved to a new machine
Fix Git Bash aliases lost with errexit
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
[VSCode] Fix missing controls for [1m] models
Fixed the missing Effort slider, Ultracode switch and model name when the model setting has the [1m] tag, such as opus[1m]
[VSCode] Fix /btw history deleted early
Fixed saved /btw side-question history being deleted too early while a settings file has errors
[VSCode] Preserve manual-approve-edits mode
Fixed a conversation coming back in Auto mode after a reload or restart when its plan was approved with "Yes, and manually approve edits"
[Cloud sessions] Fix Files pane path display
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
[Claude Tag] Fix canvas edit refusal after sharing
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
[Claude Tag] Fix unanswered Slack Connect replies
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
[Claude Tag] Fix stuck scheduled-task checklist
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