Claude Code 2.1.273 更新:新增网关请求头与远程会话分叉
原标题:2.1.273
AI 摘要
Claude Code 发布 2.1.273 版本更新,新增面向 LLM 网关的请求头(如 x-claude-code-request-class、x-claude-code-agent-type 等,需通过 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 开启),并支持从 Claude 应用对远程控制会话进行分叉。此次更新还修复了大量权限检查、MCP 连接、登录凭证、上下文压缩计数、子代理结果投递等问题,并改进了长会话响应速度与 Artifact 工具的错误提示。
正文节选
- 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