# Claude Code v2.1.90 版本更新

- 来源：Claude Code：GitHub Releases（RSS）
- 作者：ashwin-ant
- 发布时间：2026-04-02 07:41
- AIHOT 标记：精选
- AIHOT 链接：https://aihot.virxact.com/items/cmnw8fk5600atslcjfh2hckg7
- 原文链接：https://github.com/anthropics/claude-code/releases/tag/v2.1.90

## 精选理由

Claude Code新增/powerup交互式教程与多项性能优化，提升开发体验

## AI 摘要

Claude Code 发布 v2.1.90 版本。新增 `/powerup` 交互式教程命令，通过动画演示教授功能使用；增加环境变量支持离线环境保留 marketplace 缓存。修复多项关键 bug：解决速率限制对话框崩溃、`--resume` 缓存未命中、编辑操作与 format-on-save 冲突等问题。性能方面优化 MCP 工具缓存、SSE 传输及长对话转录效率。同时移除 DNS 缓存查询自动权限以增强隐私，并加固 PowerShell 工具权限检查。

## 正文

What's changed

Added /powerup — interactive lessons teaching Claude Code features with animated demos

Added CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE env var to keep the existing marketplace cache when git pull fails, useful in offline environments

Added .husky to 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 --resume causing 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/Write failing with "File content has changed" when a PostToolUse format-on-save hook rewrites the file between consecutive edits

Fixed PreToolUse hooks 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

Hardened PowerShell tool permission checks: fixed trailing & background job bypass, -ErrorAction Break debugger hang, archive-extraction TOCTOU, and parse-fail fallback deny-rule degradation

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 /resume all-projects view to load project sessions in parallel, improving load times for users with many projects

Changed --resume picker to no longer show sessions created by claude -p or SDK invocations

Removed Get-DnsClientCache and ipconfig /displaydns from auto-allow (DNS cache privacy)
