🤖 Claude Code 更新 v2.1.90
发布日期: 2026-04-02
⚠️ 新版本发布
✨ 新增功能
- Added
/powerup— interactive lessons teaching Claude Code features with animated demos - Added
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILUREenv var to keep the existing marketplace cache whengit pullfails, useful in offline environments - Added
.huskyto protected directories (acceptEdits mode)
🐛 重要修复
- Fixed an infinite loop where the rate-limit options dialog would repeatedly auto-open after hitting your usage limit, eventually crashing the session
- Fixed
--resumecausing a full prompt-cache miss on the first request for users with deferred tools, MCP servers, or custom agents (regression since v2.1.69) - Fixed
Edit/Writefailing with “File content has changed” when a PostToolUse format-on-save hook rewrites the file between consecutive edits - Fixed
PreToolUsehooks that emit JSON to stdout and exit with code 2 not correctly blocking the tool call - Fixed collapsed search/read summary badge appearing multiple times in fullscreen scrollback when a CLAUDE.md file auto-loads during a tool call
- Fixed auto mode not respecting explicit user boundaries (“don’t push”, “wait for X before Y”) even when the action would otherwise be allowed
- Fixed click-to-expand hover text being nearly invisible on light terminal themes
- Fixed UI crash when malformed tool input reached the permission dialog
- Fixed headers disappearing when scrolling
/model,/config, and other selection screens
⚡ 优化改进
- Improved performance: eliminated per-turn JSON.stringify of MCP tool schemas on cache-key lookup
- Improved performance: SSE transport now handles large streamed frames in linear time (was quadratic)
- Improved performance: SDK sessions with long conversations no longer slow down quadratically on transcript writes
- Improved
/resumeall-projects view to load project sessions in parallel, improving load times for users with many projects - Removed
Get-DnsClientCacheandipconfig /displaydnsfrom auto-allow (DNS cache privacy)
💡 深度点评
核心亮点
/powerup交互式教程:新增内置交互式课程,通过动画演示直观教学 Claude Code 的各项功能特性,降低了复杂指令的学习门槛。- 长对话与多项目性能优化:SSE 传输处理大幅数据帧的时间复杂度由平方级优化为线性;同时
/resume支持并行加载项目会话,显著提升了大型项目及长上下文场景下的响应速度。 - PowerShell 权限校验加固:针对 Windows 环境进行了深度安全加固,修复了通过后台任务(
&)绕过权限检查以及特定场景下的降级漏洞,增强了工具调用的安全性。
值得注意的修复
- 开发流冲突修复:解决了 PostToolUse 钩子(如 format-on-save)在连续编辑间隙改写文件导致
Edit/Write报错“File content has changed”的竞争问题。 - 缓存逻辑修正:修复了自 v2.1.69 以来
--resume导致 prompt-cache 失效的回归问题,确保在使用 MCP 或自定义 Agent 时能正确命中缓存以节省 Token。
个人评价
Claude Code v2.1.90 是一个以「稳定性」和「性能缩放」为核心的迭代版本。通过重构 SSE 传输机制和并行化加载逻辑,该版本解决了 AI 工具在处理超长对话时常见的性能衰减痛点。同时,针对 format-on-save 触发的文件改写冲突以及 prompt-cache 命中率的修复,显示出开发团队正在深度磨平 AI 代理与前端工程化工具链(如 ESLint/Prettier)之间的协作摩擦。整体来看,这使得 Claude Code 在处理复杂工程任务时更加可靠和高效。
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-04-02 08:16:09