Claude Code v2.1.273 Adds Gateway Hint Headers, MCP Reconnect Alerts, and Remote Control Session Forking
Claude Code v2.1.273 shipped with a mix of gateway instrumentation, session management additions, and a batch of permission and token-accounting fixes. Here's what actually changed.
New gateway hint headers
If you run Claude Code behind an LLM gateway, it can now emit five opt-in request headers: 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. They're off by default — enable them with:
CLAUDE_CODE_GATEWAY_HINT_HEADERS=1
Useful if your gateway does routing, rate limiting, or logging and wants to distinguish agent types or see compaction state per request.
MCP and Remote Control changes
- When an MCP server disconnects mid-session and automatic reconnection gives up, you now get a notification pointing at
/mcp. - Sessions started with
claude --remote-controlor/remote-controlcan now be forked from the Claude app. The fork runs as a background session on your machine.
Permission checker fixes
Two security-relevant fixes here. Bash commands the permission checker can't fully analyze were skipping the prompt under permissions.blockReadsOutsideWorkingDirectories, and a subshell could hide a dangerous rm in bypass mode. Both are fixed.
The team also reverted a 2.1.268 change that checked Read and Edit deny rules against Bash lines the checker can't analyze (eval, env -C). Commands like time -p make build prompt again instead of being denied outright.
One more under this heading: a memory directory selected by a repository's settings is no longer loaded into the prompt, recalled, indexed, or used by memory extraction when permissions.blockReadsOutsideWorkingDirectories is active.
Token accounting and auto-compact
The context meter and auto-compact were counting advisor-tool turns at roughly twice their real context size. That made auto-compact fire at about half the real window — meaning long sessions were compacting far earlier than they needed to. Fixed in this release.
Related: /login, /upgrade, and /extra-usage were discarding earlier thinking from the conversation, which forced a full prompt-cache rewrite on the next request. Also fixed.
Other fixes worth knowing
- Sub-agents and background agents were reported as failed with results never delivered when the final streamed reply omitted token usage or carried no model id.
- SDK and
--output-format stream-jsonoutput dropped a subagent's remaining messages and final report after it moved to the background mid-run (e.g. viaCLAUDE_AUTO_BACKGROUND_TASKS). allowManagedMcpServersOnly,deniedMcpServers, anddisableClaudeAiConnectorsset via MDM ormanaged-settings.jsonwere being ignored when server-managed settings were also present.- 401/403 errors on Bedrock, Vertex, and Foundry — plus Claude apps gateway 403s — no longer just tell you to run
/login; the message now names the credential to refresh or points you to your gateway admin. - Skills synced from claude.ai now move to recoverable trash when your org turns Skills off, instead of staying available.
- On macOS, dragging in a screenshot (or any file the system reports under a second path) no longer fails Read with "symlink resolution changed after permission was checked".
- The main prompt now accepts a
!typed at the start while already in shell mode, so negated commands like! grep …work. - The spinner no longer renders a doubled ellipsis ("……") on compaction status lines.
Performance and artifact improvements
Long sessions should feel more responsive: hook progress and sub-agent activity no longer re-process the entire conversation on every update. Artifact publishing got better error messages (it now tells Claude which file types are served and what to do instead), page reads state the capabilities and database rules the service holds for that page, and database writes can remove a single field instead of rewriting the whole document.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Claude Sonnet 4.6 Unveiled: Enhanced Coding and Computer Use Capabilities
Claude Sonnet 4.6 introduces a 1M token context window and improves coding and computer use skills, making it a strong alternative to Opus-class models for a wider range of tasks.

AI Learns the 'Dark Art' of RFIC Design — Faster Chips, No Human Intuition Required
Princeton researchers use reinforcement learning and inverse design to create RFICs from scratch. Diffusion models generate novel layouts with record performance, cutting design time drastically.

Two South African Home Affairs Officials Suspended Over AI Hallucinations in Policy Paper
Two officials were suspended after AI hallucinations were found in the reference list of a revised white paper on citizenship, immigration, and refugee protection. The department will implement AI checks and review all policy documents back to Nov 2022.

Claude Code 2.1.72 System Prompt Updates: New Execution Modes and Verification Improvements
Claude Code version 2.1.72 introduces new system prompts for Auto mode (continuous task execution) and Brief mode (Codex-like execution), plus significant expansions to the Verification specialist agent with documented failure patterns and structured output requirements.