🤖 Claude Code 更新日报 2026-04-04
🤖 Claude Code 更新 v2.1.92 发布日期: 2026-04-04 ⚠️ 新版本发布 ✨ 新增功能 Added forceRemoteSettingsRefresh policy setting: when set, the CLI blocks startup until remote managed settings are freshly fetched, and exits if the fetch fails (fail-closed) Added interactive Bedrock setup wizard accessible from the login screen when selecting “3rd-party platform” — guides you through AWS authentication, region configuration, credential verification, and model pinning Added per-model and cache-hit breakdown to /cost for subscription users 🐛 重要修复 Fixed subagent spawning permanently failing with “Could not determine pane count” after tmux windows are killed or renumbered during a long-running session Fixed prompt-type Stop hooks incorrectly failing when the small fast model returns ok:false, and restored preventContinuation:true semantics for non-Stop prompt-type hooks Fixed tool input validation failures when streaming emits array/object fields as JSON-encoded strings Fixed an API 400 error that could occur when extended thinking produced a whitespace-only text block alongside real content Fixed accidental feedback survey submissions from auto-pilot keypresses and consecutive-prompt digit collisions Fixed misleading “esc to interrupt” hint appearing alongside “esc to clear” when a text selection exists in fullscreen mode during processing Fixed Homebrew install update prompts to use the cask’s release channel (claude-code → stable, claude-code@latest → latest) Fixed ctrl+e jumping to the end of the next line when already at end of line in multiline prompts Fixed an issue where the same message could appear at two positions when scrolling up in fullscreen mode (iTerm2, Ghostty, and other terminals with DEC 2026 support) Fixed idle-return “/clear to save X tokens” hint showing cumulative session tokens instead of current context size ⚡ 优化改进 Improved Write tool diff computation speed for large files (60% faster on files with tabs/&/$) Removed /tag command Removed /vim command (toggle vim mode via /config → Editor mode) 💡 深度点评 核心亮点 交互式 Bedrock 配置向导:在登录界面选择第三方平台时,新增了完整的 Bedrock 引导流程,支持 AWS 身份验证、区域配置及模型固定,大幅简化了企业级环境的接入难度。 精细化 /cost 成本统计:针对订阅用户,/cost 命令现在支持按模型维度和缓存命中(cache-hit)情况进行费用拆解,提供了更透明的 Token 消耗反馈。 Write 工具性能优化:改进了大文件的 diff 计算逻辑,在处理包含制表符或特殊符号(如 &、$)的文件时,计算速度提升了约 60%。 值得注意的修复 Tmux 子智能体生成失效:修复了在 tmux 环境下,若窗口被销毁或重排导致“无法确定窗格数量”,进而造成子智能体(subagent)永久无法启动的问题。 MCP 服务连接阻塞:解决了当插件 MCP 服务与未授权的 claude.ai 连接器冲突时,导致服务卡死在“连接中”状态的异常。 个人评价 v2.1.92 版本标志着 Claude Code 进入了从功能扩张转向体验打磨的阶段。通过移除 /tag 和重构 /vim 指令(整合至配置项),工具链的逻辑变得更加清晰;而针对大文件 diff 速度的提升和 Bedrock 接入流程的完善,则直接回应了开发者在复杂工程场景下的核心诉求。整体而言,这是一个侧重于稳定性与工程化细节的务实更新,建议重度 CLI 用户及 AWS 环境开发者尽快升级。 ...