Anthropic Releases Claude Code v2.1.273 with Numerous Fixes and Improvements
This patch release for Anthropic's Claude Code addresses numerous bugs and introduces several improvements across its tools and integrations. Key updates include new request headers for LLM gateways, fixes for permission checks and Bedrock/Vertex/Foundry errors, and enhanced responsiveness for long sessions. These changes aim to improve stability, reliability, and user experience, particularly for developers interacting with Claude Code via its command-line interface, VS Code extension, and web interface. Developers and administrators using Claude Code for coding assistance, automation, and enterprise integrations will benefit from these updates.
- →Added a notification when an MCP server disconnects mid-session and automatic reconnection gives up, pointing at /mcp
- →Fixed skills synced from claude.ai staying available after your organization turns Skills off; they now move to the recoverable trash
- →Fixed auto mode stopping for approval when the Artifact tool uploads a file you attached to the chat in a cloud or Remote Control session
- →Fixed a long-running session recreating a stub .git/info/exclude after the repository's .git directory was removed or moved away
- →Fixed the main prompt dropping a ! typed at the start while already in shell mode, so negated commands like ! grep … can be typed
Features (3) ›
Added x-claude-code-request-class, x-claude-code-agent-type, x-claude-code-prev-tool-durations, x-claude-code-compaction and x-claude-code-context-compacted request headers for LLM gateways; opt in with CLAUDE_CODE_GATEWAY_HINT_HEADERS=1
- Added a notification when an MCP server disconnects mid-session and automatic reconnection gives up, pointing at /mcp
Added forking a session started with claude --remote-control or /remote-control from the Claude app; the fork runs as a background session on your computer
Enhancements (16) ›
- Improved responsiveness in long sessions: hook progress and sub-agent activity no longer re-process the whole conversation on every update
Improved the Artifact tool's error when a publish includes a file type artifacts don't serve: Claude is told which types are served and what to do instead, and the terminal shows one plain line
Improved the Artifact tool's page read to state the capabilities and database rules the artifact service holds for the page, for anyone who can publish to it
- Improved artifact database writes: an update can now remove a single field instead of rewriting the whole document
Improved artifact publishing: a publish whose connection drops after reaching claude.ai is now re-sent safely instead of failing or creating a duplicate version
Improved the cloud-session GitHub error for an IP allow list, a suspended app installation or SAML single sign-on to show the cause instead of a generic install hint
- Improved /autofix-pr: when gh pr view fails it now shows gh's own error (sign-in, SAML, rate limit) instead of a generic exit-code line
Improved /autofix-pr to say why GitHub webhook delivery couldn't be set up for the PR (for example, no linked GitHub account) instead of a generic warning
Improved /web-setup errors: a refused GitHub token now lists the likely reasons and the fix, and a connection failure names a configured proxy or TLS certificate problem
Improved the in-session SSL certificate and proxy connection errors to name the error code and what to fix, such as NODE_EXTRA_CA_CERTS for an untrusted corporate CA
- Improved the error when a cloud session can't be created because your Claude login expired or was revoked: it now tells you to run /login
- Improved the error shown when an MCP server's sign-in expires mid-session to say how to re-authenticate (/mcp)
Changed auto mode on Bedrock, Vertex and Foundry to use the local classifier by default for now; set CLAUDE_CODE_AUTO_MODE_SERVER=1 to use the platform's server-side classifier
- Changed OTEL_LOG_TOOL_DETAILS=1 to also include real agent, skill, plugin and MCP server names on cost and token metrics
- Changed sign-in with a Claude account to also request access to your claude.ai plugins
Changed /bug and /feedback reports to include only model-behavior params (model, system prompt, tools) from the last API request, omitting request metadata and CLAUDE_CODE_EXTRA_BODY fields
Fixes (19) ›
Fixed Bash commands the permission checker cannot fully analyze skipping the prompt under permissions.blockReadsOutsideWorkingDirectories, and a subshell hiding a dangerous rm in bypass mode
- Fixed skills synced from claude.ai staying available after your organization turns Skills off; they now move to the recoverable trash
Fixed allowManagedMcpServersOnly, deniedMcpServers and disableClaudeAiConnectors set via MDM or managed-settings.json being ignored when server-managed settings are also present
Fixed 401/403 errors on Bedrock, Vertex and Foundry, and Claude apps gateway 403s, telling you to run /login; the message now names the credential to refresh or points to your gateway administrator
Fixed /login, /upgrade, and /extra-usage discarding earlier thinking from the conversation, which forced a full prompt-cache rewrite on the next request
- Fixed auto mode stopping for approval when the Artifact tool uploads a file you attached to the chat in a cloud or Remote Control session
- Fixed a long-running session recreating a stub .git/info/exclude after the repository's .git directory was removed or moved away
- Fixed the main prompt dropping a ! typed at the start while already in shell mode, so negated commands like ! grep … can be typed
Fixed Read on macOS refusing a dragged-in screenshot, or any file the system reports under a second path, with "symlink resolution changed after permission was checked"
Fixed permissions.blockReadsOutsideWorkingDirectories: a memory directory chosen by a repository's settings is no longer loaded into the prompt, recalled, indexed, or used by memory extraction
Fixed sub-agents and background agents being reported as failed, with their result never delivered, when the final streamed reply omitted token usage or carried no model id
Fixed the context meter and auto-compact counting advisor-tool turns at roughly twice their real context size, which made auto-compact fire at about half the real window
Fixed /tui refusing to restart because of an agent-team teammate that had already finished its work and was no longer shown in the agents panel
Fixed saved scheduled tasks running in the wrong session after .claude/scheduled_tasks.json was copied into another folder, such as a new worktree
Fixed SDK and --output-format stream-json output dropping a subagent's remaining messages and final report after it is moved to the background mid-run (e.g. by CLAUDE_AUTO_BACKGROUND_TASKS)
- Fixed /install-github-app reporting a SAML single sign-on block as "admin permissions required"
Fixed Remote Control clients attached to a Claude Desktop, VS Code or JetBrains session being refused when they ask for the session's context window usage
- Fixed the spinner showing a doubled ellipsis ("……") on compaction status lines such as "Running PreCompact hooks…"
- Fixed a false-positive spinner tip suggesting the frontend-design plugin after reading or publishing Artifacts
https://github.com/anthropics/claude-code/releases/tag/v2.1.273
Related releases
- Claude API Adds On-Demand Conversation Compaction to Messages API Claude Platform Release Notes ·
- Anthropic Python SDK v1.6.0 Released with AI Tooling & API Enhancements Anthropic Python SDK Releases ·
- Anthropic adds Salesforce plugin to Claude in beta Claude Release Notes ·
- Anthropic Claude claude-haiku-4-5-20251001 reaches end of life in 30 days endoflife.date ·
- Anthropic's Claude Code v2.1.272 Delivers Bug Fixes and Reliability Improvements Claude Code Releases ·
- Anthropic Claude Code v2.1.271 Enhances Fast Mode, Sandboxing, and Fixes Bugs Claude Code Releases ·