Claude Code v2.1.91
Claude Code v2.1.91
构建日期: 2026-04-02T22:04:30Z
最新更新
2.1.91
- Added MCP tool result persistence override via
_meta["anthropic/maxResultSizeChars"]annotation (up to 500K), allowing larger results like DB schemas to pass through without truncation - Added
disableSkillShellExecutionsetting to disable inline shell execution in skills, custom slash commands, and plugin commands - Added support for multi-line prompts in
claude-cli://open?q=deep links (encoded newlines%0Ano longer rejected) - Plugins can now ship executables under
bin/and invoke them as bare commands from the Bash tool - Fixed transcript chain breaks on
--resumethat could lose conversation history when async transcript writes fail silently - Fixed
cmd+deletenot deleting to start of line on iTerm2, kitty, WezTerm, Ghostty, and Windows Terminal - Fixed plan mode in remote sessions losing track of the plan file after a container restart, which caused permission prompts on plan edits and an empty plan-approval modal
- Fixed JSON schema validation for
permissions.defaultMode: "auto"in settings.json - Fixed Windows version cleanup not protecting the active version's rollback copy
/feedbacknow explains why it's unavailable instead of disappearing from the slash menu- Improved
/claude-apiskill guidance for agent design patterns including tool surface decisions, context management, and caching strategy - Improved performance: faster
stripAnsion Bun by routing throughBun.stripANSI - Edit tool now uses shorter
old_stringanchors, reducing output tokens
2.1.90
- 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 - Hardened PowerShell tool permission checks: fixed trailing
&background job bypass,-ErrorAction Breakdebugger 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
/resumeall-projects view to load project sessions in parallel, improving load times for users with many projects - Changed
--resumepicker to no longer show sessions created byclaude -por SDK invocations - Removed
Get-DnsClientCacheandipconfig /displaydnsfrom auto-allow (DNS cache privacy)
2.1.89
- Added
"defer"permission decision toPreToolUsehooks — headless sessions can pause at a tool call and resume with-p --resumeto have the hook re-evaluate - Added
CLAUDE_CODE_NO_FLICKER=1environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback - Added
PermissionDeniedhook that fires after auto mode classifier denials — return{retry: true}to tell the model it can retry - Added named subagents to
@mention typeahead suggestions - Added
MCP_CONNECTION_NONBLOCKING=truefor-pmode to skip the MCP connection wait entirely, and bounded--mcp-configserver connections at 5s instead of blocking on the slowest server - Auto mode: denied commands now show a notification and appear in
/permissions→ Recent tab where you can retry withr - Fixed
Edit(//path/**)andRead(//path/**)allow rules to check the resolved symlink target, not just the requested path - Fixed voice push-to-talk not activating for some modifier-combo bindings, and voice mode on Windows failing with "WebSocket upgrade rejected with HTTP 101"
- Fixed Edit/Write tools doubling CRLF on Windows and stripping Markdown hard line breaks (two trailing spaces)
- Fixed
StructuredOutputschema cache bug causing ~50% failure rate when using multiple schemas - Fixed memory leak where large JSON inputs were retained as LRU cache keys in long-running sessions
- Fixed a crash when removing a message from very large session files (over 50MB)
- Fixed LSP server zombie state after crash — server now restarts on next request instead of failing until session restart
- Fixed prompt history entries containing CJK or emoji being silently dropped when they fall on a 4KB boundary in
~/.claude/history.jsonl - Fixed
/statsundercounting tokens by excluding subagent usage, and losing historical data beyond 30 days when the stats cache format changes - Fixed
-p --resumehangs when the deferred tool input exceeds 64KB or no deferred marker exists, and-p --continuenot resuming deferred tools - Fixed
claude-cli://deep links not opening on macOS - Fixed MCP tool errors truncating to only the first content block when the server returns multi-element error content
- Fixed skill reminders and other system context being dropped when sending messages with images via the SDK
- Fixed PreToolUse/PostToolUse hooks to receive
file_pathas an absolute path for Write/Edit/Read tools, matching the documented behavior - Fixed autocompact thrash loop — now detects when context refills to the limit immediately after compacting three times in a row and stops with an actionable error instead of burning API calls
- Fixed prompt cache misses in long sessions caused by tool schema bytes changing mid-session
- Fixed nested CLAUDE.md files being re-injected dozens of times in long sessions that read many files
- Fixed
--resumecrash when transcript contains a tool result from an older CLI version or interrupted write - Fixed misleading "Rate limit reached" message when the API returned an entitlement error — now shows the actual error with actionable hints
- Fixed hooks
ifcondition filtering not matching compound commands (ls && git push) or commands with env-var prefixes (FOO=bar git push) - Fixed collapsed search/read group badges duplicating in terminal scrollback during heavy parallel tool use
- Fixed notification
invalidatesnot clearing the currently-displayed notification immediately - Fixed prompt briefly disappearing after submit when background messages arrived during processing
- Fixed Devanagari and other combining-mark text being truncated in assistant output
- Fixed rendering artifacts on main-screen terminals after layout shifts
- Fixed voice mode failing to request microphone permission on macOS Apple Silicon
- Fixed Shift+Enter submitting instead of inserting a newline on Windows Terminal Preview 1.25
- Fixed periodic UI jitter during streaming in iTerm2 when running inside tmux
- Fixed PowerShell tool incorrectly reporting failures when commands like
git pushwrote progress to stderr on Windows PowerShell 5.1 - Fixed a potential out-of-memory crash when the Edit tool was used on very large files (>1 GiB)
- Improved collapsed tool summary to show "Listed N directories" for
ls/tree/duinstead of "Read N files" - Improved Bash tool to warn when a formatter/linter command modifies files you have previously read, preventing stale-edit errors
- Improved
@-mention typeahead to rank source files above MCP resources with similar names - Improved PowerShell tool prompt with version-appropriate syntax guidance (5.1 vs 7+)
- Changed
Editto work on files viewed viaBashwithsed -norcat, without requiring a separateReadcall first - Changed hook output over 50K characters to be saved to disk with a file path + preview instead of being injected directly into context
- Changed
cleanupPeriodDays: 0in settings.json to be rejected with a validation error — it previously silently disabled transcript persistence - Changed thinking summaries to no longer be generated by default in interactive sessions — set
showThinkingSummaries: truein settings.json to restore - Documented
TaskCreatedhook event and its blocking behavior - Preserved task notifications when backgrounding a running command with Ctrl+B
- PowerShell tool on Windows: external-command arguments containing both a double-quote and whitespace now prompt instead of auto-allowing (PS 5.1 argument-splitting hardening)
/envnow applies to PowerShell tool commands (previously only affected Bash)/usagenow hides redundant "Current week (Sonnet only)" bar for Pro and Enterprise plans- Image paste no longer inserts a trailing space
- Pasting
!commandinto an empty prompt now enters bash mode, matching typed!behavior /buddyis here for April 1st — hatch a small creature that watches you code
下载平台
| 平台 | 文件 |
|---|---|
| macOS Apple Silicon | claude-darwin-arm64 |
| macOS Intel | claude-darwin-x64 |
| Linux arm64 (glibc) | claude-linux-arm64 |
| Linux x64 (glibc) | claude-linux-x64 |
| Linux arm64 (musl) | claude-linux-arm64-musl |
| Linux x64 (musl) | claude-linux-x64-musl |
| Windows x64 | claude-win32-x64.exe |
SHA256 Checksums
7433d76d3ec5d223a340e21d7a05f3d481d89999f228113168ad5d64c66fd376 claude-darwin-arm64
47409dc476c199711d5c776cf359773f75cb9dc72ce7494a4e4cb100520e8ab4 claude-darwin-x64
dddba100b352ea6d06aa7e036d5afe49749edddd1309a4aa22e47049fafcadf9 claude-linux-arm64
01b74e1b02e3330940b3526d2f6e00bf32f7fd9e6b3861be6a61e01cfd7296e6 claude-linux-x64
3dcaacefb510f6aee3573d35fe65f5dccbbbf4b6fdcca9a5a5455c03556a2f8b claude-linux-arm64-musl
b05d9447b7d9a4fa92f936b2275ca87db3bada52d8589bf4e4c49d437366942a claude-linux-x64-musl
12f69849f6774749718520f41fb94f6fc30779b55d8f9b0acaaf20c755e6b55d claude-win32-x64.exe
389de7f1f2b979cb4098f7752ca0099275cedabcfe3908a9886d143ef594972b claude.exe
此版本自动从官方 GCS 存储桶同步