精选85Claude Code(GitHub Releases)AI 编程与模型
Claude Code v2.1.232:子代理分叉默认开启,多项安全修复
v2.1.232
推荐理由
Claude Code 重度用户注意:本次更新默认开启子代理分叉,并修复了多个权限绕过漏洞,建议尽快升级。
What's changed
变更内容
- Subagent forking is now on by default: a subagent_type: "fork" subagent inherits the full conversation and prompt cache, and non-teammate agent spawns in interactive sessions now run in the background by default
- Type @ in the prompt to mention another Claude session by name; Claude then uses SendMessage to reach that session directly
- SendMessage now delivers to a bare name that exactly matches one live session, instead of asking to confirm with a ref first
- Interactive sessions on one machine now keep unique names: starting or renaming a session to a name another live session already uses gives it a name-word-word variant and tells you
- Added /config rows for "Dialog expiry" and "Messages from your other sessions" (cross-session inbound accept/hold/refuse)
- Added secret redaction for GitLab token families (glrt-, gloas-, glptt-, glagent-, glimt-, glsoat-, glcbt-, glft-, glffct-) and full redaction of routable glpat-/gldt- tokens; the glab CLI config store gets the same sandbox and credential-path protection as gh
- Added GitLab support to plugin marketplaces: bare gitlab.com repo URLs (including nested subgroups) now clone like github.com URLs, and clone auth-failure hints name your actual git host
- Settings: additionalMarketplaces and allowedMarketplaces are now accepted as friendlier aliases for extraKnownMarketplaces and strictKnownMarketplaces
- Enterprise policy: a url-typed blockedMarketplaces entry for a bare repo URL keeps blocking that URL when the CLI classifies it as a git clone
- Gateway: the desktop: overlay now accepts every released Desktop setting (was 11 hand-listed keys), validated at boot against Desktop's own schema; unknown or invalid keys fail boot
- Gateway: empty managed.policies[].match.groups/admin.admin_groups entries and malformed email_domain values (empty, or containing @, whitespace, or commas) now fail at boot instead of silently matching no one or granting admin access
- Fable 5 is offered as an advisor in /advisor again for organizations with Fable access, with usage-credits consent set up through /model fable
- Fixed a PowerShell permission bypass where variable-writing parameters could silently overwrite $PSDefaultParameterValues and redirect later commands' file access
- Fixed a Windows permission bypass where Git Bash followed Cygwin-style symlinks that path validation saw as regular files; writes through them now require permission approval
- Fixed nested git repositories inheriting trust from a parent directory; each repository now requires its own trust confirmation
- Fixed MCP connections hanging for the full 30-second connect timeout when a server fails to answer or sends a malformed reply to the protocol-version probe
- Fixed Remote Control sessions hosted by a bridge inside a cloud session inheriting that session's transcript or credentials
- Fixed Remote Control sessions started from Claude Desktop or an IDE appearing as a new claude.ai session each time the local session was resumed; they now reattach to the existing one
- Fixed Remote Control sessions appearing unreachable to newly attached clients while idle
- Fixed Remote Control bridge sessions not restoring conversation history when the session worker restarts
- Remote Control: resuming a conversation whose session was deleted from claude.ai or the app now starts a replacement instead of failing with a message about your login (regressed in v2.1.227)
- Fixed Cloud gateway /login exiting silently or leaving an unresponsive terminal after "Press Enter to continue" when managed settings failed to load; the reason is now shown
- Fixed voice mode on native builds getting stuck on "listening…" when the voice service rejected the connection; the rejection is now shown immediately
- Fixed mTLS client certificate rotation requiring a restart; Claude Code now reloads the rotated cert and key automatically on connection errors
- Fixed malformed AWS or Vertex region values being used to build request URLs; they now fall back to the default region
- Fixed stream idle timeout errors failing the request instead of recovering on Bedrock, Vertex, and gateway deployments
- Fixed content-sized overlays containing truncated text rendering one column too wide, and start-truncated text collapsing to an ellipsis
- Fixed a stray garbled character where a long shell-command or agent-description preview was cut off mid-emoji
- Fixed a startup race that could silently unregister a plugin marketplace due to concurrent writes to known_marketplaces.json
- Fixed /update and /tui refusing to restart while work that survives the relaunch was running
- Fixed usage-limit guidance suggesting unavailable slash commands in SDK and remote sessions
- Fixed the consent message for interactive --advisor fable launches, which told you to run /model fable in an interactive session that had just exited
- Improved fullscreen streaming: long sessions stay responsive because the whole conversation is no longer re-normalized on every update
- Improved the managed settings approval dialog: shows endpoint URLs, uses clearer wording for telemetry-only changes, skips routine OpenTelemetry options, and requires approval for server-managed sandbox binary overrides (sandbox.bwrapPath, sandbox.socatPath, sandbox.ripgrep)
- /feedback and /bug now open immediately when invoked while Claude is responding, instead of waiting for the turn to finish
- /plugin install plugin@marketplace now refreshes the marketplace first, so newly published plugins install without a manual marketplace update
- /code-review at high, xhigh, and max effort now runs in a background agent like the other levels
- Pasted and clipboard images are read without blocking the event loop
- Remote Control now keeps reconnecting for about 30 minutes after a network blip and no longer drops after a few blips spread across an hour
- Remote Control: resuming a conversation no longer silently takes Remote Control away from another Claude Code on the same machine that still has it; run /remote-control there to move it
- Updated agent panel: completed subagents hide immediately with a /tasks footer hint, and the "↓ N more" overflow indicator moved left for visibility
- Remote Control: the terminal now says whether a session was taken over by another device, ended from another app, or deleted, and stops suggesting a reconnect that would undo it
- Bash input redirections (< file) are now permission-checked like their argument spellings on all platforms
- Shortened the message shown when resuming a completed background agent
- Cowork sessions no longer inline external @-imports from user-scope memory files
- Hardened the auto-generated cross-session messaging socket directory on shared /tmp: a pre-planted symlink or another user's directory is now refused instead of used
- Hardened the Linux filesystem sandbox against a protected-path bypass
- Changed sandbox.ripgrep to be honored only from user, managed, and --settings settings; project settings can no longer override the sandbox's ripgrep binary
- Removed the startup tip suggesting you create custom subagents, and the matching nudge in the /powerup tour
- 子代理分叉现在默认开启:类型为 "fork" 的子代理继承完整对话和提示缓存,交互式会话中非队友代理的生成现在默认在后台运行
- 在提示中输入 @ 可按名称提及另一个 Claude 会话;Claude 随后使用 SendMessage 直接到达该会话
- SendMessage 现在直接传递给与某个活动会话完全匹配的裸名称,而不再要求先用引用确认
- 单台机器上的交互式会话现在保持唯一名称:启动或重命名会话时,如果名称已被另一个活动会话使用,则会为其生成一个名称-单词-单词的变体并告知你
- 为“对话过期”和“来自其他会话的消息”(跨会话入站接受/保持/拒绝)添加了 /config 行
- 为 GitLab 令牌系列(glrt-、gloas-、glptt-、glagent-、glimt-、glsoat-、glcbt-、glft-、glffct-)添加了秘密编辑,并完全编辑了可路由的 glpat-/gldt- 令牌;glab CLI 配置存储获得与 gh 相同的沙箱和凭据路径保护
- 为插件市场添加了 GitLab 支持:裸 gitlab.com 仓库 URL(包括嵌套子组)现在像 github.com URL 一样克隆,克隆认证失败提示会指明你的实际 git 主机
- 设置:additionalMarketplaces 和 allowedMarketplaces 现在被接受为 extraKnownMarketplaces 和 strictKnownMarketplaces 的更友好别名
- 企业策略:当 CLI 将裸仓库 URL 归类为 git 克隆时,url 类型的 blockedMarketplaces 条目会继续阻止该 URL
- 网关:desktop: overlay 现在接受所有已发布的 Desktop 设置(之前是 11 个手列键),在启动时根据 Desktop 自身的模式进行验证;未知或无效键会导致启动失败
- 网关:空的 managed.policies[].match.groups/admin.admin_groups 条目和格式错误的 email_domain 值(空,或包含 @、空白或逗号)现在会在启动时失败,而不是静默地不匹配任何人或授予管理员访问权限
- 对于有 Fable 访问权限的组织,Fable 5 再次在 /advisor 中作为顾问提供,使用额度同意通过 /model fable 设置
- 修复了 PowerShell 权限绕过问题,其中变量写入参数可能静默覆盖 $PSDefaultParameterValues 并重定向后续命令的文件访问
- 修复了 Windows 权限绕过问题,其中 Git Bash 遵循 Cygwin 风格的符号链接,而路径验证将其视为常规文件;通过它们写入现在需要权限批准
- 修复了嵌套的 git 仓库从父目录继承信任的问题;现在每个仓库都需要自己的信任确认
- 修复了当服务器未能应答或对协议版本探测发送格式错误的回复时,MCP 连接挂起整整 30 秒连接超时的问题
- 修复了云会话中由网桥托管的远程控制会话继承该会话的转录或凭据的问题
- 修复了从 Claude Desktop 或 IDE 启动的远程控制会话在每次本地会话恢复时显示为新的 claude.ai 会话的问题;现在它们会重新附加到现有会话
- 修复了远程控制会话在空闲时对新附加的客户端显示为不可达的问题
- 修复了远程控制网桥会话在会话工作进程重启时无法恢复对话历史的问题
- 远程控制:恢复已从 claude.ai 或应用删除的会话时,现在会启动替代会话,而不是显示关于登录的错误信息(在 v2.1.227 中回归)
- 修复了当托管设置加载失败时,Cloud 网关 /login 静默退出或在“按 Enter 继续”后留下无响应的终端的问题;现在会显示原因
- 修复了当语音服务拒绝连接时,原生构建的语音模式卡在“正在聆听…”的问题;现在会立即显示拒绝信息
- 修复了 mTLS 客户端证书轮换需要重启的问题;Claude Code 现在会在连接错误时自动重新加载轮换的证书和密钥
- 修复了格式错误的 AWS 或 Vertex 区域值被用于构建请求 URL 的问题;现在它们会回退到默认区域
- 修复了在 Bedrock、Vertex 和网关部署中,流空闲超时错误导致请求失败而不是恢复的问题
- 修复了包含截断文本的内容大小覆盖层渲染时宽一列,以及开头截断文本折叠为省略号的问题
- 修复了长 shell 命令或代理描述预览在表情符号中间截断时出现杂散乱码字符的问题
- 修复了由于对 known_marketplaces.json 的并发写入,启动竞争条件可能静默注销插件市场的问题
- 修复了 /update 和 /tui 在重启后仍能存活的工作正在运行时拒绝重启的问题
- 修复了在 SDK 和远程会话中,使用量限制指南建议不可用的斜杠命令的问题
- 修复了交互式 --advisor fable 启动的同意消息,该消息告诉你在刚刚退出的交互式会话中运行 /model fable
- 改进的全屏流式传输:长时间会话保持响应,因为整个对话不再在每次更新时重新规范化
- 改进的托管设置审批对话框:显示端点 URL,对仅遥测更改使用更清晰的措辞,跳过常规 OpenTelemetry 选项,并要求对服务器管理的沙箱二进制覆盖(sandbox.bwrapPath、sandbox.socatPath、sandbox.ripgrep)进行审批
- /feedback 和 /bug 现在在 Claude 响应时立即打开,而不是等待回合结束
- /plugin install plugin@marketplace 现在先刷新市场,因此新发布的插件无需手动更新市场即可安装
- /code-review 在高、极高和最大努力级别下现在像其他级别一样在后台代理中运行
- 粘贴和剪贴板图像在不阻塞事件循环的情况下读取
- 远程控制现在在网络故障后保持重连约 30 分钟,并且不再在一小时内多次故障后断开
- 远程控制:恢复会话不再静默地从同一台机器上仍持有远程控制的另一个 Claude Code 中夺走它;在那里运行 /remote-control 来移动它
- 更新的代理面板:完成的子代理立即隐藏,并带有 /tasks 页脚提示,"↓ N more" 溢出指示器移到左侧以便可见
- 远程控制:终端现在说明会话是被另一设备接管、从另一个应用结束还是被删除,并停止建议可能撤销该操作的重连
- Bash 输入重定向(< file)现在在所有平台上都像其参数拼写一样进行权限检查
- 缩短了恢复已完成的背景代理时显示的消息
- 协作会话不再内联来自用户范围内存文件的外部 @-导入
- 加固了共享 /tmp 上自动生成的跨会话消息套接字目录:预先放置的符号链接或其他用户的目录现在被拒绝而不是使用
- 加固了 Linux 文件系统沙箱,防止受保护路径绕过
- 更改了 sandbox.ripgrep,使其仅从用户、托管和 --settings 设置中生效;项目设置不能再覆盖沙箱的 ripgrep 二进制文件
- 移除了建议创建自定义子代理的启动提示,以及 /powerup 导览中的相应提示
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力