Claude Code v2.1.224:新增自托管环境、跨会话消息与沙箱凭据掩码
v2.1.224
推荐理由
Claude Code 重度用户注意:本次新增自托管运行环境、跨会话消息和沙箱凭据掩码,都是能改变工作流的能力,建议升级体验。
What's changed
变更内容
- Added self-hosted environments: claude self-hosted-runner turns your own machines or containers into a place Claude Code web, mobile, and desktop sessions can run, on Team and Enterprise plans
- Added archive plugin source: install plugins from a zip over HTTPS without git or npm, with optional SHA-256 pinning
- Added a cancel-and-confirm step when removing an unavailable paste changes a command's text
- Added ANTHROPIC_BEDROCK_REGION_PREFIX env var for Bedrock to prefer a specific cross-region inference profile over the AWS_REGION-derived one
- Added crossSessionInbound and dialogExpiry settings: cross-session messages sent to a session running with bypassed permissions are held for your approval, and messages to other sessions auto-deliver
- Added sandbox credential-masking options: extract and onExtractNoMatch for structured env values, decode: "jwt" with maskClaims for JWT-aware masking, and awsPairs/sigv4 for AWS SigV4 re-signing; these need network.tlsTerminate and are honored only from user, managed, or --settings settings
- Added cross-session SendMessage: Claude Code sessions can now message each other, on any of your machines, with ListAgents to discover them (macOS and Linux)
- Fixed long (>200 char) project paths resolving to another project's session directory under a shared sanitized prefix; session list, rename, fork, delete and /resume no longer cross projects
- Fixed SendMessage reporting "Message sent" when the write to a teammate's inbox had actually failed; failed deliveries are now reported as errors
- Fixed sandbox filesystem deny entries written with a trailing slash (e.g. denyRead: "~/.aws/") being silently bypassable on Linux and macOS
- Fixed sandbox violation details never appearing in Bash tool results; Claude now sees which file or network access was denied and why
- Fixed MCP tools that connect mid-turn being deferred for tool search without their names announced to the model
- Fixed plugin install records being silently corrupted when the same plugin is installed in multiple projects
- Fixed recalled or restored paste content occasionally attaching wrong data or silently losing text when the paste had aged out or placeholder numbers collided
- Fixed copy-on-select on Wayland sometimes not reaching the clipboard; the two selection writes no longer race
- Fixed the feedback survey's transcript share silently failing on long sessions; a failed share now shows an error instead of a success message
- Fixed Remote Control auto-start intermittently failing with "Remote credentials fetch failed" on a cold start with a stale login token
- Fixed Remote Control and SDK clients showing a blank "(no content)" message after /clear and other output-less commands
- Fixed a Remote Control session recreated after its server session expired uploading prior local conversation history into the new session
- Improved fullscreen mode to keep the full pre-compaction history in scrollback across repeated compactions, instead of only the most recent interval
- Improved Remote Control: attached web and mobile clients now see compaction progress and the post-compaction boundary instead of a silent pause; /clear resets now propagate to attached clients
- Improved Remote Control: connection failures now show a persistent failure indicator with details and a reconnect shortcut, instead of only an 8-second toast
- Removed the 200-subagent-per-session spawn cap; long-running sessions no longer refuse new agents (concurrency and depth limits still apply)
- Changed managed settings: the approval prompt no longer re-appears after re-login or org switching when the organization's settings are unchanged
- Changed the feedback-survey transcript share: with your consent it now also uploads the last request's model settings — the system prompt (which includes your CLAUDE.md instructions), tool definitions, and model parameters. Secrets are redacted as before, and these fields are dropped first if the share is too large
- Changed the Bash tool description to always note that command output is displayed to the model, not reliably to the user
- Changed recalled paste placeholder numbers to renumber when accepted into the input
- Changed Remote Control to archive the stale server session instead of leaving a dead one listed when a fresh session is minted after compaction or /resume
- [VSCode] Fixed the extension showing Remote Control as connected after the connection failed
- Fixed a session resume silently reconnecting Remote Control after the user turned it off (--resume, SDK hosts, and the VS Code extension)
- [VSCode] Fixed sessions not honoring remoteControlAtStartup when explicitly enabled
- 新增自托管环境:claude self-hosted-runner 可将您自己的机器或容器转变为 Claude Code 网页、移动和桌面会话的运行场所,适用于 Team 和 Enterprise 套餐
- 新增归档插件源:无需 git 或 npm,即可通过 HTTPS 从 zip 安装插件,并支持可选的 SHA-256 固定
- 当移除不可用的粘贴内容会改变命令文本时,新增取消并确认步骤
- 为 Bedrock 新增 ANTHROPIC_BEDROCK_REGION_PREFIX 环境变量,以优先使用特定的跨区域推理配置文件,而非基于 AWS_REGION 的配置
- 新增 crossSessionInbound 和 dialogExpiry 设置:发送到以绕过权限运行的会话的跨会话消息将等待您批准,而发送到其他会话的消息将自动送达
- 新增沙箱凭据掩蔽选项:extract 和 onExtractNoMatch 用于结构化环境值,decode: "jwt" 配合 maskClaims 实现 JWT 感知掩蔽,以及 awsPairs/sigv4 用于 AWS SigV4 重新签名;这些选项需要 network.tlsTerminate,并且仅从用户、托管或 --settings 设置中生效
- 新增跨会话 SendMessage:Claude Code 会话现在可以在您的任何机器上相互发送消息,并使用 ListAgents 发现它们(macOS 和 Linux)
- 修复了长(>200 字符)项目路径在共享的清理前缀下解析到另一个项目的会话目录的问题;会话列表、重命名、分叉、删除和 /resume 不再跨项目
- 修复了 SendMessage 在写入队友收件箱实际失败时仍报告“消息已发送”的问题;现在失败的投递会报告为错误
- 修复了沙箱文件系统拒绝条目以尾部斜杠写入(例如 denyRead: "~/.aws/")在 Linux 和 macOS 上可被静默绕过的问题
- 修复了沙箱违规详情从未出现在 Bash 工具结果中的问题;现在 Claude 可以看到哪个文件或网络访问被拒绝以及原因
- 修复了在回合中途连接的 MCP 工具在工具搜索时被延迟,且其名称未向模型宣布的问题
- 修复了同一插件在多个项目中安装时,插件安装记录被静默损坏的问题
- 修复了召回或恢复的粘贴内容偶尔附加错误数据,或在粘贴内容过期或占位符数字冲突时静默丢失文本的问题
- 修复了 Wayland 上复制即选有时无法到达剪贴板的问题;两次选择写入不再竞争
- 修复了反馈调查的转录分享在长会话中静默失败的问题;现在失败的分享会显示错误而不是成功消息
- 修复了在冷启动且登录令牌过期时,远程控制自动启动间歇性失败并报“远程凭据获取失败”的问题
- 修复了远程控制和SDK客户端在/clear及其他无输出命令后显示空白“(无内容)”消息的问题
- 修复了远程控制会话在其服务器会话过期后重新创建时,将之前的本地对话历史上传到新会话的问题
- 改进了全屏模式,在多次压缩后保留压缩前的完整历史记录在回滚缓冲区中,而不仅仅保留最近的时间间隔
- 改进了远程控制:附加的Web和移动客户端现在可以看到压缩进度和压缩后的边界,而不是静默暂停;/clear重置现在会传播到附加的客户端
- 改进了远程控制:连接失败现在显示带有详细信息和重新连接快捷方式的持久失败指示器,而不仅仅是8秒的提示消息
- 移除了每个会话200个子代理的生成上限;长时间运行的会话不再拒绝新代理(并发和深度限制仍然适用)
- 更改了托管设置:当组织设置未更改时,重新登录或切换组织后不再重新出现审批提示
- 更改了反馈调查转录共享:在您同意的情况下,现在还会上传最后一个请求的模型设置——系统提示(包括您的CLAUDE.md指令)、工具定义和模型参数。机密信息照常编辑,如果共享内容过大,这些字段会首先被删除
- 更改了Bash工具描述,始终说明命令输出显示给模型,而不是可靠地显示给用户
- 更改了召回粘贴占位符编号,在输入中接受时重新编号
- 更改了远程控制,在压缩或/resume后创建新会话时,将过期的服务器会话归档,而不是留下一个死会话列出
- [VSCode] 修复了连接失败后扩展仍显示远程控制已连接的问题
- 修复了会话恢复在用户关闭远程控制后(--resume、SDK主机和VS Code扩展)静默重新连接的问题
- [VSCode] 修复了显式启用remoteControlAtStartup时会话不遵守该设置的问题
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力