Claude Code v2.1.78
Claude Code v2.1.78
构建日期: 2026-03-17T21:07:53Z
最新更新
2.1.78
- Added
StopFailurehook event that fires when the turn ends due to an API error (rate limit, auth failure, etc.) - Added
${CLAUDE_PLUGIN_DATA}variable for plugin persistent state that survives plugin updates;/plugin uninstallprompts before deleting it - Added
effort,maxTurns, anddisallowedToolsfrontmatter support for plugin-shipped agents - Terminal notifications (iTerm2/Kitty/Ghostty popups, progress bar) now reach the outer terminal when running inside tmux with
set -g allow-passthrough on - Response text now streams line-by-line as it's generated
- Fixed
git log HEADfailing with "ambiguous argument" inside sandboxed Bash on Linux, and stub files pollutinggit statusin the working directory - Fixed
cc logand--resumesilently truncating conversation history on large sessions (>5 MB) that used subagents - Fixed infinite loop when API errors triggered stop hooks that re-fed blocking errors to the model
- Fixed
deny: ["mcp__servername"]permission rules not removing MCP server tools before sending to the model, allowing it to see and attempt blocked tools - Fixed
sandbox.filesystem.allowWritenot working with absolute paths (previously required//prefix) - Fixed
/sandboxDependencies tab showing Linux prerequisites on macOS instead of macOS-specific info - Security: Fixed silent sandbox disable when
sandbox.enabled: trueis set but dependencies are missing — now shows a visible startup warning - Fixed
.git,.claude, and other protected directories being writable without a prompt inbypassPermissionsmode - Fixed ctrl+u in normal mode scrolling instead of readline kill-line (ctrl+u/ctrl+d half-page scroll moved to transcript mode only)
- Fixed voice mode modifier-combo push-to-talk keybindings (e.g. ctrl+k) requiring a hold instead of activating immediately
- Fixed voice mode not working on WSL2 with WSLg (Windows 11); WSL1/Win10 users now get a clear error
- Fixed
--worktreeflag not loading skills and hooks from the worktree directory - Fixed
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONSandincludeGitInstructionssetting not suppressing the git status section in the system prompt - Fixed Bash tool not finding Homebrew and other PATH-dependent binaries when VS Code is launched from Dock/Spotlight
- Fixed washed-out Claude orange color in VS Code/Cursor/code-server terminals that don't advertise truecolor support
- Added
ANTHROPIC_CUSTOM_MODEL_OPTIONenv var to add a custom entry to the/modelpicker, with optional_NAMEand_DESCRIPTIONsuffixed vars for display - Fixed
ANTHROPIC_BETASenvironment variable being silently ignored when using Haiku models - Fixed queued prompts being concatenated without a newline separator
- Improved memory usage and startup time when resuming large sessions
- [VSCode] Fixed a brief flash of the login screen when opening the sidebar while already authenticated
- [VSCode] Fixed "API Error: Rate limit reached" when selecting Opus — model dropdown no longer offers 1M context variant to subscribers whose plan tier is unknown
2.1.77
- Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens
- Added
allowReadsandbox filesystem setting to re-allow read access withindenyReadregions /copynow accepts an optional index:/copy Ncopies the Nth-latest assistant response- Fixed "Always Allow" on compound bash commands (e.g.
cd src && npm test) saving a single rule for the full string instead of per-subcommand, leading to dead rules and repeated permission prompts - Fixed auto-updater starting overlapping binary downloads when the slash-command overlay repeatedly opened and closed, accumulating tens of gigabytes of memory
- Fixed
--resumesilently truncating recent conversation history due to a race between memory-extraction writes and the main transcript - Fixed PreToolUse hooks returning
"allow"bypassingdenypermission rules, including enterprise managed settings - Fixed Write tool silently converting line endings when overwriting CRLF files or creating files in CRLF directories
- Fixed memory growth in long-running sessions from progress messages surviving compaction
- Fixed cost and token usage not being tracked when the API falls back to non-streaming mode
- Fixed
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASnot stripping beta tool-schema fields, causing proxy gateways to reject requests - Fixed Bash tool reporting errors for successful commands when the system temp directory path contains spaces
- Fixed paste being lost when typing immediately after pasting
- Fixed Ctrl+D in
/feedbacktext input deleting forward instead of the second press exiting the session - Fixed API error when dragging a 0-byte image file into the prompt
- Fixed Claude Desktop sessions incorrectly using the terminal CLI's configured API key instead of OAuth
- Fixed
git-subdirplugins at different subdirectories of the same monorepo commit colliding in the plugin cache - Fixed ordered list numbers not rendering in terminal UI
- Fixed a race condition where stale-worktree cleanup could delete an agent worktree just resumed from a previous crash
- Fixed input deadlock when opening
/mcpor similar dialogs while the agent is running - Fixed Backspace and Delete keys not working in vim NORMAL mode
- Fixed status line not updating when vim mode is toggled on or off
- Fixed hyperlinks opening twice on Cmd+click in VS Code, Cursor, and other xterm.js-based terminals
- Fixed background colors rendering as terminal-default inside tmux with default configuration
- Fixed iTerm2 session crash when selecting text inside tmux over SSH
- Fixed clipboard copy silently failing in tmux sessions; copy toast now indicates whether to paste with
⌘Vor tmuxprefix+] - Fixed
←/→accidentally switching tabs in settings, permissions, and sandbox dialogs while navigating lists - Fixed IDE integration not auto-connecting when Claude Code is launched inside tmux or screen
- Fixed CJK characters visually bleeding into adjacent UI elements when clipped at the right edge
- Fixed teammate panes not closing when the leader exits
- Fixed iTerm2 auto mode not detecting iTerm2 for native split-pane teammates
- Faster startup on macOS (~60ms) by reading keychain credentials in parallel with module loading
- Faster
--resumeon fork-heavy and very large sessions — up to 45% faster loading and ~100-150MB less peak memory - Improved Esc to abort in-flight non-streaming API requests
- Improved
claude plugin validateto check skill, agent, and command frontmatter plushooks/hooks.json, catching YAML parse errors and schema violations - Background bash tasks are now killed if output exceeds 5GB, preventing runaway processes from filling disk
- Sessions are now auto-named from plan content when you accept a plan
- Improved headless mode plugin installation to compose correctly with
CLAUDE_CODE_PLUGIN_SEED_DIR - Show a notice when
apiKeyHelpertakes longer than 10s, preventing it from blocking the main loop - The Agent tool no longer accepts a
resumeparameter — useSendMessage({to: agentId})to continue a previously spawned agent SendMessagenow auto-resumes stopped agents in the background instead of returning an error- Renamed
/forkto/branch(/forkstill works as an alias) - [VSCode] Improved plan preview tab titles to use the plan's heading instead of "Claude's Plan"
- [VSCode] When option+click doesn't trigger native selection on macOS, the footer now points to the
macOptionClickForcesSelectionsetting
2.1.76
- Added MCP elicitation support — MCP servers can now request structured input mid-task via an interactive dialog (form fields or browser URL)
- Added new
ElicitationandElicitationResulthooks to intercept and override responses before they're sent back - Added
-n/--name <name>CLI flag to set a display name for the session at startup - Added
worktree.sparsePathssetting forclaude --worktreein large monorepos to check out only the directories you need via git sparse-checkout - Added
PostCompacthook that fires after compaction completes - Added
/effortslash command to set model effort level - Added session quality survey — enterprise admins can configure the sample rate via the
feedbackSurveyRatesetting - Fixed deferred tools (loaded via
ToolSearch) losing their input schemas after conversation compaction, causing array and number parameters to be rejected with type errors - Fixed slash commands showing "Unknown skill"
- Fixed plan mode asking for re-approval after the plan was already accepted
- Fixed voice mode swallowing keypresses while a permission dialog or plan editor was open
- Fixed
/voicenot working on Windows when installed via npm - Fixed spurious "Context limit reached" when invoking a skill with
model:frontmatter on a 1M-context session - Fixed "adaptive thinking is not supported on this model" error when using non-standard model strings
- Fixed
Bash(cmd:*)permission rules not matching when a quoted argument contains# - Fixed "don't ask again" in the Bash permission dialog showing the full raw command for pipes and compound commands
- Fixed auto-compaction retrying indefinitely after consecutive failures — a circuit breaker now stops after 3 attempts
- Fixed MCP reconnect spinner persisting after successful reconnection
- Fixed LSP plugins not registering servers when the LSP Manager initialized before marketplaces were reconciled
- Fixed clipboard copying in tmux over SSH — now attempts both direct terminal write and tmux clipboard integration
- Fixed
/exportshowing only the filename instead of the full file path in the success message - Fixed transcript not auto-scrolling to new messages after selecting text
- Fixed Escape key not working to exit the login method selection screen
- Fixed several Remote Control issues: sessions silently dying when the server reaps an idle environment, rapid messages being queued one-at-a-time instead of batched, and stale work items causing redelivery after JWT refresh
- Fixed bridge sessions failing to recover after extended WebSocket disconnects
- Fixed slash commands not found when typing the exact name of a soft-hidden command
- Improved
--worktreestartup performance by reading git refs directly and skipping redundantgit fetchwhen the remote branch is already available locally - Improved background agent behavior — killing a background agent now preserves its partial results in the conversation context
- Improved model fallback notifications — now always visible instead of hidden behind verbose mode, with human-friendly model names
- Improved blockquote readability on dark terminal themes — text is now italic with a left bar instead of dim
- Improved stale worktree cleanup — worktrees left behind after an interrupted parallel run are now automatically cleaned up
- Improved Remote Control session titles — now derived from your first prompt instead of showing "Interactive session"
- Improved
/voiceto show your dictation language on enable and warn when yourlanguagesetting isn't supported for voice input - Updated
--plugin-dirto only accept one path to support subcommands — use repeated--plugin-dirfor multiple directories - [VSCode] Fixed gitignore patterns containing commas silently excluding entire filetypes from the @-mention file picker
下载平台
| 平台 | 文件 |
|---|---|
| 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
0a4939f36bc0194021c56fa5c8470ad84e2282f2f404f1598a940c2044117168 claude-darwin-arm64
14d9193a85a6b191b090fd2a1ce261905cccf0bf6728239d7c2147719641963c claude-darwin-x64
75cf87465197883df61dcbb187d4ad3fc031bf91927658159929dcd2959542dc claude-linux-arm64
b120a4139a4477a2719aeb0b2c790a5c2fe2d904e47f4e2adf3cab33b342d03a claude-linux-x64
2882a6412fd1109aedc9be76e798888cefbaecc1d7d20f0024932a80bbf051f7 claude-linux-arm64-musl
7786b1b3aa8a4293800b6b34c93fd973d09865da1de2b970ba976c39f1bb50ac claude-linux-x64-musl
c979e148d5431d3eaf00383d0a65a1793e7a9f160f0dc06561a85b17c7a8bd78 claude-win32-x64.exe
eea099a2565559e44b6d884e74c827456d10bd4353b27004fc47a99142535265 claude.exe
此版本自动从官方 GCS 存储桶同步