Claude Code v2.1.86
Claude Code v2.1.86
构建日期: 2026-03-27T20:34:42Z
最新更新
2.1.86
- Added
X-Claude-Code-Session-Idheader to API requests so proxies can aggregate requests by session without parsing the body - Added
.jjand.slto VCS directory exclusion lists so Grep and file autocomplete don't descend into Jujutsu or Sapling metadata - Fixed
--resumefailing with "tool_use ids were found without tool_result blocks" on sessions created before v2.1.85 - Fixed Write/Edit/Read failing on files outside the project root (e.g.,
~/.claude/CLAUDE.md) when conditional skills or rules are configured - Fixed unnecessary config disk writes on every skill invocation that could cause performance issues and config corruption on Windows
- Fixed potential out-of-memory crash when using
/feedbackon very long sessions with large transcript files - Fixed
--baremode dropping MCP tools in interactive sessions and silently discarding messages enqueued mid-turn - Fixed the
cshortcut copying only ~20 characters of the OAuth login URL instead of the full URL - Fixed masked input (e.g., OAuth code paste) leaking the start of the token when wrapping across multiple lines on narrow terminals
- Fixed official marketplace plugin scripts failing with "Permission denied" on macOS/Linux since v2.1.83
- Fixed statusline showing another session's model when running multiple Claude Code instances and using
/modelin one of them - Fixed scroll not following new messages after wheel scroll or click-to-select at the bottom of a long conversation
- Fixed
/pluginuninstall dialog: pressingnnow correctly uninstalls the plugin while preserving its data directory - Fixed a regression where pressing Enter after clicking could leave the transcript blank until the response arrived
- Fixed
ultrathinkhint lingering after deleting the keyword - Fixed memory growth in long sessions from markdown/highlight render caches retaining full content strings
- Reduced startup event-loop stalls when many claude.ai MCP connectors are configured (macOS keychain cache extended from 5s to 30s)
- Reduced token overhead when mentioning files with
@— raw string content no longer JSON-escaped - Improved prompt cache hit rate for Bedrock, Vertex, and Foundry users by removing dynamic content from tool descriptions
- Memory filenames in the "Saved N memories" notice now highlight on hover and open on click
- Skill descriptions in the
/skillslisting are now capped at 250 characters to reduce context usage - Changed
/skillsmenu to sort alphabetically for easier scanning - Auto mode now shows "unavailable for your plan" when disabled by plan restrictions (was "temporarily unavailable")
- [VSCode] Fixed extension incorrectly showing "Not responding" during long-running operations
- [VSCode] Fixed extension defaulting Max plan users to Sonnet after the OAuth token refreshes (8 hours after login)
- Read tool now uses compact line-number format and deduplicates unchanged re-reads, reducing token usage
2.1.85
- Added
CLAUDE_CODE_MCP_SERVER_NAMEandCLAUDE_CODE_MCP_SERVER_URLenvironment variables to MCPheadersHelperscripts, allowing one helper to serve multiple servers - Added conditional
iffield for hooks using permission rule syntax (e.g.,Bash(git *)) to filter when they run, reducing process spawning overhead - Added timestamp markers in transcripts when scheduled tasks (
/loop,CronCreate) fire - Added trailing space after
[Image #N]placeholder when pasting images - Deep link queries (
claude-cli://open?q=…) now support up to 5,000 characters, with a "scroll to review" warning for long pre-filled prompts - MCP OAuth now follows RFC 9728 Protected Resource Metadata discovery to find the authorization server
- Plugins blocked by organization policy (
managed-settings.json) can no longer be installed or enabled, and are hidden from marketplace views - PreToolUse hooks can now satisfy
AskUserQuestionby returningupdatedInputalongsidepermissionDecision: "allow", enabling headless integrations that collect answers via their own UI tool_parametersin OpenTelemetry tool_result events are now gated behindOTEL_LOG_TOOL_DETAILS=1- Fixed
/compactfailing with "context exceeded" when the conversation has grown too large for the compact request itself to fit - Fixed
/plugin enableand/plugin disablefailing when a plugin's install location differs from where it's declared in settings - Fixed
--worktreeexiting with an error in non-git repositories before theWorktreeCreatehook could run - Fixed
deniedMcpServerssetting not blocking claude.ai MCP servers - Fixed
switch_displayin the computer-use tool returning "not available in this session" on multi-monitor setups - Fixed crash when
OTEL_LOGS_EXPORTER,OTEL_METRICS_EXPORTER, orOTEL_TRACES_EXPORTERis set tonone - Fixed diff syntax highlighting not working in non-native builds
- Fixed MCP step-up authorization failing when a refresh token exists — servers requesting elevated scopes via
403 insufficient_scopenow correctly trigger the re-authorization flow - Fixed memory leak in remote sessions when a streaming response is interrupted
- Fixed persistent ECONNRESET errors during edge connection churn by using a fresh TCP connection on retry
- Fixed prompts getting stuck in the queue after running certain slash commands, with up-arrow unable to retrieve them
- Fixed Python Agent SDK:
type:'sdk'MCP servers passed via--mcp-configare no longer dropped during startup - Fixed raw key sequences appearing in the prompt when running over SSH or in the VS Code integrated terminal
- Fixed Remote Control session status staying stuck on "Requires Action" after a permission is resolved
- Fixed shift+enter and meta+enter being intercepted by typeahead suggestions instead of inserting newlines
- Fixed stale content bleeding through when scrolling up during streaming
- Fixed terminal left in enhanced keyboard mode after exit in Ghostty, Kitty, WezTerm, and other terminals supporting the Kitty keyboard protocol — Ctrl+C and Ctrl+D now work correctly after quitting
- Improved @-mention file autocomplete performance on large repositories
- Improved PowerShell dangerous command detection
- Improved scroll performance with large transcripts by replacing WASM yoga-layout with a pure TypeScript implementation
- Reduced UI stutter when compaction triggers on large sessions
2.1.84
- Added PowerShell tool for Windows as an opt-in preview. Learn more at https://code.claude.com/docs/en/tools-reference#powershell-tool
- Added
ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTSenv vars to override effort/thinking capability detection for pinned default models for 3p (Bedrock, Vertex, Foundry), and_MODEL_NAME/_DESCRIPTIONto customize the/modelpicker label - Added
CLAUDE_STREAM_IDLE_TIMEOUT_MSenv var to configure the streaming idle watchdog threshold (default 90s) - Added
TaskCreatedhook that fires when a task is created viaTaskCreate - Added
WorktreeCreatehook support fortype: "http"— return the created worktree path viahookSpecificOutput.worktreePathin the response JSON - Added
allowedChannelPluginsmanaged setting for team/enterprise admins to define a channel plugin allowlist - Added
x-client-request-idheader to API requests for debugging timeouts - Added idle-return prompt that nudges users returning after 75+ minutes to
/clear, reducing unnecessary token re-caching on stale sessions - Deep links (
claude-cli://) now open in your preferred terminal instead of whichever terminal happens to be first in the detection list - Rules and skills
paths:frontmatter now accepts a YAML list of globs - MCP tool descriptions and server instructions are now capped at 2KB to prevent OpenAPI-generated servers from bloating context
- MCP servers configured both locally and via claude.ai connectors are now deduplicated — the local config wins
- Background bash tasks that appear stuck on an interactive prompt now surface a notification after ~45 seconds
- Token counts ≥1M now display as "1.5m" instead of "1512.6k"
- Global system-prompt caching now works when
ToolSearchis enabled, including for users with MCP tools configured - Fixed voice push-to-talk: holding the voice key no longer leaks characters into the text input, and transcripts now insert at the correct position
- Fixed up/down arrow keys being unresponsive when a footer item is focused
- Fixed
Ctrl+U(kill-to-line-start) being a no-op at line boundaries in multiline input, so repeatedCtrl+Unow clears across lines - Fixed null-unbinding a default chord binding (e.g.
"ctrl+x ctrl+k": null) still entering chord-wait mode instead of freeing the prefix key - Fixed mouse events inserting literal "mouse" text into transcript search input
- Fixed workflow subagents failing with API 400 when the outer session uses
--json-schemaand the subagent also specifies a schema - Fixed missing background color behind certain emoji in user message bubbles on some terminals
- Fixed the "allow Claude to edit its own settings for this session" permission option not sticking for users with
Edit(.claude)allow rules - Fixed a hang when generating attachment snippets for large edited files
- Fixed MCP tool/resource cache leak on server reconnect
- Fixed a startup performance issue where partial clone repositories (Scalar/GVFS) triggered mass blob downloads
- Fixed native terminal cursor not tracking the text input caret, so IME composition (CJK input) now renders inline and screen readers can follow the input position
- Fixed spurious "Not logged in" errors on macOS caused by transient keychain read failures
- Fixed cold-start race where core tools could be deferred without their bypass active, causing Edit/Write to fail with InputValidationError on typed parameters
- Improved detection for dangerous removals of Windows drive roots (
C:\,C:\Windows, etc.) - Improved interactive startup by ~30ms by running
setup()in parallel with slash command and agent loading - Improved startup for
claude "prompt"with MCP servers — the REPL now renders immediately instead of blocking until all servers connect - Improved Remote Control to show a specific reason when blocked instead of a generic "not yet enabled" message
- Improved p90 prompt cache rate
- Reduced scroll-to-top resets in long sessions by making the message window immune to compaction and grouping changes
- Reduced terminal flickering when animated tool progress scrolls above the viewport
- Changed issue/PR references to only become clickable links when written as
owner/repo#123— bare#123is no longer auto-linked - Slash commands unavailable for the current auth setup (
/voice,/mobile,/chrome,/upgrade, etc.) are now hidden instead of shown - [VSCode] Added rate limit warning banner with usage percentage and reset time
- Stats screenshot (Ctrl+S in /stats) now works in all builds and is 16× faster
下载平台
| 平台 | 文件 |
|---|---|
| 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
76fafee995269784b1bf80b514c3b354394288fb794bed01ef20168874e088ea claude-darwin-arm64
de96f6966648ecd93c345fab4b3be944e93ba4140f1cda7fe45ffed93133b67e claude-darwin-x64
c04aebe3de140679b4cce158812d6f011b7e9c483496ccb0472cf38cc1714afe claude-linux-arm64
adce02c5f94a85b6ca231c8aeef533707597cd387e8934776455b87d10a3051b claude-linux-x64
ded1933ce0f2bb55156b397fa622ca2782caa48ed99ed117ee20481f638e0293 claude-linux-arm64-musl
fb86c40f52a39c71393db93b9fa5f5c048be67c5a087a03e35e1e304c127c8c5 claude-linux-x64-musl
9b9281621d0d5aa4aba3e3e9c5a6efdfe37a897fb9ba33a87e4562ec9df6453f claude-win32-x64.exe
4f6eaa82b5eefd79b1ed56d6d6ffa3229c508c974f51ae43b6c38f5e2fdafe5f claude.exe
此版本自动从官方 GCS 存储桶同步