Anthropic ships Claude Code 2.1.273 with gateway hint headers and Remote Control session forking
Anthropic released Claude Code 2.1.273 on September 15, adding gateway hint headers, Remote Control session forking, an MCP disconnect notification and dozens of fixes across Code Review, MCP and artifact publishing.
Anthropic 于 9 月 15 日发布 Claude Code 2.1.273,是本月以来变更日志最长的一次更新。
在面向 LLM 网关的可见性方面,2.1.273 新增 x-claude-code-request-class、x-claude-code-agent-type、x-claude-code-prev-tool-durations 与 x-claude-code-context-compacted 四个请求头,通过环境变量 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 显式开启。网关侧启动时若检测到 access_control.allow_cidrs 为空,会打印警告。
Remote Control 会话分叉是本版本另一项关键功能。通过 claude --remote-control 启动或从 Claude 应用以 /remote-control 接入的会话,现在可以分叉出一个运行在用户本地的后台会话继续工作。
可靠性层面,2.1.273 修复了 Code Review 偶发重复发布同一 finding 的问题,并对把基线分支合入 PR 时不再触发完全重审。产物发布(artifact publishing)现在支持断连后重试:若发布过程在抵达 claude.ai 之后连接中断,会自动重新发送而非创建重复版本。
错误信息也更具针对性——在 Bedrock、Vertex、Foundry 与 Claude 应用网关身份验证失败时,提示会指明需要刷新的具体凭据,而不是笼统的 401/403。此外,本版本引入了 MCP 服务器断连时的主动通知,若自动重连尝试失败,会指引用户使用 /mcp 命令手动恢复。