Skip to content

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
More changes (6) Fewer changes

Improvements

10
More changes (7) Fewer changes

Bug fixes

34
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

Removed & reverted

1
All changes (1) Fewer changes
Change details