🤖 Claude Code 更新 v2.1.74
发布日期: 2026-03-13 ⚠️ 重大更新
✨ 新增功能
- Added actionable suggestions to
/contextcommand — identifies context-heavy tools, memory bloat, and capacity warnings with specific optimization tips - Added
autoMemoryDirectorysetting to configure a custom directory for auto-memory storage - Added
modelOverridessetting to map model picker entries to custom provider model IDs (e.g. Bedrock inference profile ARNs) - Added actionable guidance when OAuth login or connectivity checks fail due to SSL certificate errors (corporate proxies,
NODE_EXTRA_CA_CERTS) - Added
wkey in/copyto write the focused selection directly to a file, bypassing the clipboard (useful over SSH) - Added optional description argument to
/plan(e.g.,/plan fix the auth bug) that enters plan mode and immediately starts - Added
ExitWorktreetool to leave anEnterWorktreesession - Added
CLAUDE_CODE_DISABLE_CRONenvironment variable to immediately stop scheduled cron jobs mid-session
🐛 重要修复
- Fixed memory leak where streaming API response buffers were not released when the generator was terminated early, causing unbounded RSS growth on the Node.js/npm code path
- Fixed managed policy
askrules being bypassed by userallowrules or skillallowed-tools - Fixed full model IDs (e.g.,
claude-opus-4-5) being silently ignored in agent frontmattermodel:field and--agentsJSON config — agents now accept the same model values as--model - Fixed MCP OAuth authentication hanging when the callback port is already in use
- Fixed MCP OAuth refresh never prompting for re-auth after the refresh token expires, for OAuth servers that return errors with HTTP 200 (e.g. Slack)
- Fixed voice mode silently failing on the macOS native binary for users whose terminal had never been granted microphone permission — the binary now includes the
audio-inputentitlement so macOS prompts correctly - Fixed
SessionEndhooks being killed after 1.5 s on exit regardless ofhook.timeout— now configurable viaCLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS - Fixed
/plugin installfailing inside the REPL for marketplace plugins with local sources
⚡ 优化改进
- [VSCode] Fixed delete button not working for Untitled sessions
- [VSCode] Improved scroll wheel responsiveness in the integrated terminal with terminal-aware acceleration
- Improved Up arrow after interrupting Claude — now restores the interrupted prompt and rewinds the conversation in one step
- Improved IDE detection speed at startup
- Improved clipboard image pasting performance on macOS
- Improved
/effortto work while Claude is responding, matching/modelbehavior - Improved voice mode to automatically retry transient connection failures during rapid push-to-talk re-press
- Improved the Remote Control spawn mode selection prompt with better context
💡 深度点评
🎯 核心亮点
1. 定时调度工具 — 新增 cron 调度能力,支持在会话内设置周期性任务。
2. 语音体验升级 — Push-to-Talk 按键可自定义(默认空格),新增多种语言支持。
3. /claude-api skill — 新增官方技能,可直接用 Claude API 和 Anthropic SDK 构建应用。
4. 快捷键自定义 — 语音激活键可自由绑定,如 meta+k。
5. Ctrl+U 退出 bash — 在空命令提示符下按 Ctrl+U 可退出 bash 模式。
6. 远程控制增强 — /remote-control 支持自定义名称参数。
🔧 值得注意的修复
- stdin 冻结问题 — 长时间会话中按键无响应的痛点问题终于修复。
- 启动卡顿 — 修复语音模式导致的 5-8 秒启动冻结。
- 图片处理优化 — 超大图片处理失败不再影响后续对话。
- /fork 修复 — 会话分叉不再共享 plan 文件。
- OAuth 重连修复 — claude.ai 连接器 token 刷新后重新连接失败的问题。
⚡ 优化亮点
- 启动速度 — 图片处理模块改为懒加载,开机速度提升。
- 睡眠唤醒恢复 — 电脑唤醒后几秒内恢复连接。
- 插件管理优化 — /plugin uninstall 改为修改本地配置。
- MCP 去重 — 自动跳过重复的 MCP 服务器。
- 压缩优化 — 保留图片的 prompt cache,复用更高效。
- 调试模式 — /debug 可在会话中随时开关调试日志。
📝 个人评价
v2.1.74 是一个重要的功能更新版本。
新增的 命令填补了定时任务的能力空白,语音体验的改进也解决了 macOS 用户的痛点。整体来看,Anthropic 正在不断完善开发者工作流。
如果需要监控部署、轮询状态,或使用语音功能,这个版本值得更新!
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-03-13 08:00:09