Claude Code 2.1.318
Released3 Nov 20263 Nov 2026. 84 items: 11 added, 47 fixed, 15 improved, 10 changed, 1 removed or reverted.
- MCP
- 5
Security1
-
ADD
Gateway: Added a log warning when the Google access token from a federation (
external_account) credentials file is about to expire
MCP5
-
FIX
Fixed
/logout,claude auth logoutandclaude mcp removereporting success, and changes to trust, consent or MCP settings being dropped with no word, when the config file could not be updated on a shared network home directory - FIX Fixed stdio MCP servers that exit on the version probe being re-probed on every start; a server that dies in under 3s for its own reason is also pinned to the legacy handshake for 7 days
- IMP Improved sessions on network file systems to look again when the configuration file is wrongly reported as missing, so fewer start without your MCP servers and trusted folders
- IMP Improved MCP tool errors: a call made before the tool is loaded now returns its input schema
-
CHG
Changed
/claude-api managed-agents-onboardto give a new agent's built-in tools, and a quickstart template's MCP tools, theautopermission policy ("Judge risky actions") by default, matching the Claude Console; say "run without asking" to opt out
Hooks3
-
FIX
Fixed variables a
Setuphook writes toCLAUDE_ENV_FILEnot reaching the Bash tool in some cloud sessions -
FIX
Fixed a mod's
turn.stephook making a stopped reply finish as a success in headless runs -
ADD
Self-hosted runner: Added
CLAUDE_RUNNER_SPAWN_REASONto the orchestrator's spawn-runner hook environment: why Anthropic sent the request (e.g.runner_lost,resumed); unset when none was sent
Plugins and skills2
-
FIX
Fixed
claude plugincommands exiting before a slow token refresh was saved, which could sign you out on the next run -
FIX
Fixed
claude plugin validatepassing a custom-named marketplace file thatclaude plugin marketplace addrejects
SDK and headless10
-
ADD
Added the date a stored claude.ai sign-in ends to
claude auth status(loginExpiresAt) and toclaude -pJSON results (credential_expires_at) -
ADD
Added a one-line stderr warning to
claude -ptext output, starting 10 days before a stored claude.ai sign-in ends -
FIX
Fixed custom slash commands that fail, or that only Claude can invoke, printing nothing in
claude -pand SDK sessions -
FIX
Fixed
claude -pand Agent SDK sessions reporting success when an API error cut off a reply while a mod hookedturn.step - FIX Fixed a message sent right after a model change still running after Stop in headless sessions: Stop now cancels or stops it as it would a queued message
- FIX Fixed a deleted session transcript being re-created with its last prompt when an idle non-interactive session exited
-
FIX
Fixed retention cleanup leaving a home that only runs
claude -pwith no~/.claude.jsonbackup: it now takes a fresh backup before deleting the last good one -
FIX
Fixed non-interactive launches replacing a
~/.claude.jsonthat isn't valid JSON with defaults; the start now fails, says how to restore the file, and leaves it as is (anthropics/claude-code#87551) -
FIX
Fixed the sign-in failure when a stored claude.ai login reaches its time limit: it now says so, and in
claude -pnamesclaude auth loginandclaude setup-token -
IMP
Improved unattended runs (
claude -p, SDK apps) to stop rewriting~/.claude.jsonon every run when nothing in it changed
Agents5
- FIX Fixed the "Now using usage credits" notice reappearing about every 30 seconds while a background subagent is running
- FIX Fixed workflows re-running finished agents when resumed after a usage limit
- CHG Changed subagents to stop instead of switching models when "Switch models when a message is flagged" is set to "Ask each time"
- CHG Changed background subagents to move a shell command to the background after 3 minutes on all providers, so the prompt cache doesn't expire while it runs
- CHG Changed subagent progress summaries on Bedrock, Vertex, Foundry, or with telemetry off: on a cold prompt cache, one can now wait up to 5 minutes for the subagent's pending response
IDE and desktop4
-
CHG
Changed Claude Code to no longer install or update the IDE extension when started in an IDE terminal; use
/idefrom an outside terminal or your editor's extensions view - FIX [VSCode] Fixed a window whose sign-in the organization's settings refuse starting a new Claude Code process in the background every minute
- FIX [VSCode] Fixed a long word in the chat panel's error banner pushing its close button out of view
- IMP [VSCode] Improved the sign-in screen to show what Claude Code printed when its sign-in status check fails
Commands5
-
FIX
Fixed
/remote-controlshowing a session as available after a failed connection -
FIX
Fixed
/design revokereporting success when the request failed with a 404 -
FIX
Fixed
/mcpin cloud sessions counting tools the model can't use; a server's row now shows how many of its tools are available -
IMP
Improved the reliability of git commits and pull request creation when the Bash tool runs macOS's built-in
/bin/bash -
CHG
Changed the
/permissionsrule details, built-in rules and delete confirmation views to use the standard dialog; pressing Ctrl+C twice there now goes back or cancels instead of quitting
Settings3
-
FIX
Fixed
claude mcp addandremovewriting the config without its lock: they now wait for it or exit 1, though another job's save can still replace a saved server -
FIX
Fixed every connection failing when the
NODE_EXTRA_CA_CERTSfile is empty, not PEM, or starts with a damaged certificate: readable certificates are now used, with a warning on stderr -
IMP
Improved how
~/.claude.json, settings files and the stored login survive saves on shared network home directories: they are less often deleted, briefly emptied or replaced by a near-empty or older copy
Permissions2
- FIX Fixed permission prompts being answered by keys typed just after sending a message, or before a slow prompt appeared
-
CHG
Changed
deniedMcpServersURL entries to also block Anthropic-provided servers whose upstream URL matches, and connectors in cloud sessions and on self-hosted runners, where the session is given the connector's own URL; otherwise deny a connector by name
Models and providers4
-
ADD
Added an
effortoption to a mod's$.model.fork, so a quick side job can run atlowwhatever effort the session uses; the result reports the effort sent -
FIX
Fixed tokens from
setup-tokenbeing refused at start on machines withforceLoginOrgUUID, when the token belongs to a permitted organization - REM Removed the 2.1.288 fix that kept the model's earlier thinking when resuming a conversation started on 2.1.286 or earlier; that thinking can now be dropped
- IMP Gateway: Improved the warning when AWS CountTokens fails on Amazon Bedrock: it says Claude Code, not the gateway, counts after the 501, and points at IAM only when AWS denies access
Performance1
- FIX Fixed macOS sessions with many running Bash commands stalling while memory grew
Terminal and input5
-
FIX
Fixed jobs exiting with
Not logged inwhen another terminal or host signs in again to the same account and organization on the same home - IMP Improved You should know toasts to say "try again" instead of "press 2", which only works in the terminal
-
CHG
Changed what a mod attaches at
prompt.submitto stay in the user's turn rather than go out as a system message - IMP Remote Control: Improved the title a fork of a terminal fork is created with when the app doesn't set one: "Name (fork 2)"
- FIX [Claude Tag] Fixed keyboard focus and screen reader announcements in Claude Tag admin setup; pressing Escape in the connect form no longer also closes the Add dialog
Sessions and context21
- ADD Added a record of your answer when Claude Code asks to turn on the mods it writes in a session
-
FIX
Fixed
--continuesometimes losing the earlier conversation after a malformed tool call's retries ran out (regression in 2.1.314) -
FIX
Fixed sessions being refused at startup by an
allowedProviderslist that another login on the same machine had stored - FIX Fixed idle compaction replacing a conversation with a reply that was not a summary
-
FIX
Fixed
claude remote-controlhosts, the background daemon and self-hosted runners failing to start new sessions (spawn ENOENT) after an update or version cleanup removed the binary of a still-running process - FIX Fixed a shell command approved after a self-hosted runner or cloud session restart running in the session's start folder, not the folder it was asked in; if that folder can't be entered, it is not run
- FIX Fixed Claude not being told when an approved connector tool was unavailable after a cloud session restart
- FIX Fixed cloud sessions being stopped in the middle of a turn when the service refuses uploads for several minutes
- FIX Fixed the iPhone app showing a cloud session's turn as finished while it kept running, after a response was cut off at a tool call or a refused image or document was removed
- FIX Fixed a restarted session re-sending a message that failed with an API error, ahead of the newer message waiting behind it
- FIX Fixed a restarted session dropping its interrupted turn when the restart came right after Claude read a large image or retried a tool call
- IMP Improved how fast remote sessions reconnect after a pause or sleep
-
ADD
Self-hosted runner: Added a startup warning when
--release-idle-session-minis the last argument with no value (still ignored) or has a value of only spaces (still read as0) -
CHG
Self-hosted runner: Changed the orchestrator's log lines:
ok session=…now prints at every log level on stdout (was debug only, stderr) withreason=…afterjti=…, andnack session=…ends its fields withreason=…afterretryable=…; update scripts that matchretryable=true:orretryable=false: - FIX Remote Control: Fixed a misleading "spawn error: ENOENT" when a session's working folder is missing; the error now names the folder
- ADD [Cloud sessions] Added a No repository option: a cloud session on an Anthropic-hosted environment can now start without picking a repository
- ADD [Cloud sessions] Added the usual Chrome names to cloud sessions, so tools other than Playwright can find the built-in Chromium through google-chrome and CHROME_PATH
- ADD [Cloud sessions] Added a New session button to the card shown when a cloud session's environment was deleted, where the message box is hidden
-
FIX
[Cloud sessions] Fixed reading GitHub Actions logs in cloud sessions:
gh run view --logandgh apilog requests now get the log in most environments, not an unreachable redirect - IMP [Cloud sessions] Improved most Create PR failure messages in cloud and Remote Control sessions: they now give the reason or a link to GitHub instead of saying Try again
- CHG [Cloud sessions] Changed connector search results to tell Claude that the search covers only part of the connector directory
Everything else13
-
ADD
Added
assume_roleonmantleupstreams of the Claude apps gateway, for a role in another AWS account and for per-developer AWS cost attribution -
FIX
Fixed a running Claude Code process owned by another user (for example one left by
sudo claude) being treated as dead by version cleanup, which could delete its binary - FIX Fixed a duplicate notification when Claude left the status field out of a PushNotification call
- FIX Fixed the error for a too-large image in a request with more than 20 images always saying the limit was 2000px; it now shows the API's limit
- FIX Fixed the runtime in background shell details not updating while the dialog is open
- FIX Fixed the stored login being replaced by an empty file when a network home directory has no room left for data but still takes new files
-
FIX
Fixed an empty
~/.claude.jsonwith no backup being reported as corrupted; Claude Code now starts as it does when the file is missing -
FIX
Fixed the restore command printed for a damaged or missing
~/.claude.jsonnaming an empty or cut-off backup, or failing on a read-only file - IMP Improved "Ask your admin for more usage" in the usage limit menu to send the request in one step
- IMP Improved auto-update reliability: a brief network failure while verifying a release is now retried right away instead of waiting for the next check
-
IMP
Gateway: Improved the log hints about
listen.trusted_proxies: they now say to list only a proxy that adds the connecting address toX-Forwarded-Foritself - FIX [Remote Control] Fixed side-by-side checkouts of one repository looking identical in the environment menu's Remote Control rows; each now shows its own folder name
- IMP [Code Review] Improved the Code Review analytics page to retry once after a server or network failure, then show a Try again banner instead of empty cards