🤖 Claude Code 更新 v2.1.84
发布日期: 2026-03-26
⚠️ 新版本发布
✨ 新增功能
- 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
🐛 重要修复
- 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
⚡ 优化改进
- 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
- [VSCode] Added rate limit warning banner with usage percentage and reset time
💡 深度点评
这是一篇关于 Claude Code v2.1.84 更新内容的深度点评。
核心亮点
- 交互性能与 Windows 支持增强:新增 PowerShell 工具(预览版)以优化 Windows 开发体验,同时改进了带 MCP 服务时的启动逻辑,使 REPL 能够立即渲染而无需阻塞等待服务器连接。
- 上下文管理与缓存优化:对 MCP 工具描述和指令引入了 2KB 的硬性截断以防止上下文膨胀,并实现了在开启
ToolSearch时(包含配置 MCP 工具的用户)支持全局系统提示词缓存,有效降低长会话成本。 - 工程化扩展能力:引入了
TaskCreated钩子和对 HTTP 类型WorktreeCreate的支持,并允许通过环境变量自定义第三方模型(如 Bedrock、Vertex)的推理能力检测与标签展示。
值得注意的修复
- 输入法(IME)渲染优化:修复了原生终端光标无法准确跟踪文本输入点的问题,解决了中文(CJK)输入法在行内渲染异常的顽疾,确保输入位置与光标同步。
- 复杂任务稳定性:修复了在使用
--json-schema时 subagent 嵌套调用可能导致的 API 400 错误,增强了复杂自动化工作流的可靠性。
个人评价
v2.1.84 版本是一个侧重于「效率精算」与「交互细节」的迭代。通过引入闲置会话重置提醒(75分钟以上)和更激进的 MCP 上下文限制,该版本在不影响功能的前提下进一步优化了 Token 消耗。对终端光标跟踪和中文输入法的修复,显著提升了非英语母语开发者的原生使用感。整体来看,这标志着 Claude Code 正在从功能堆叠阶段转向更成熟的跨平台稳定性打磨阶段。
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-03-26 12:46:49