🤖 Claude Code 更新 v2.1.81
发布日期: 2026-03-21
⚠️ 新版本发布
✨ 新增功能
- Added
--bareflag for scripted-pcalls — skips hooks, LSP, plugin sync, and skill directory walks; requiresANTHROPIC_API_KEYor anapiKeyHelpervia--settings(OAuth and keychain auth disabled); auto-memory fully disabled - Added
--channelspermission relay — channel servers that declare the permission capability can forward tool approval prompts to your phone
🐛 重要修复
- Fixed multiple concurrent Claude Code sessions requiring repeated re-authentication when one session refreshes its OAuth token
- Fixed voice mode silently swallowing retry failures and showing a misleading “check your network” message instead of the actual error
- Fixed voice mode audio not recovering when the server silently drops the WebSocket connection
- Fixed
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASnot suppressing the structured-outputs beta header, causing 400 errors on proxy gateways forwarding to Vertex/Bedrock - Fixed
--channelsbypass for Team/Enterprise orgs with no other managed settings configured - Fixed a crash on Node.js 18
- Fixed unnecessary permission prompts for Bash commands containing dashes in strings
- Fixed plugin hooks blocking prompt submission when the plugin directory is deleted mid-session
- Fixed a race condition where background agent task output could hang indefinitely when the task completed between polling intervals
- Fixed
/btwnot including pasted text when used during an active response
⚡ 优化改进
- Improved MCP read/search tool calls to collapse into a single “Queried {server}” line (expand with Ctrl+O)
- Improved
!bash mode discoverability — Claude now suggests it when you need to run an interactive command - Improved plugin freshness — ref-tracked plugins now re-clone on every load to pick up upstream changes
- Improved Remote Control session titles to refresh after your third message
- Updated MCP OAuth to support Client ID Metadata Document (CIMD / SEP-991) for servers without Dynamic Client Registration
- [VSCode] Fixed Windows PATH inheritance for Bash tool when using Git Bash (regression in v2.1.78)
💡 深度点评
核心亮点
--bare模式:专为脚本化调用(-p)设计,通过跳过 LSP 启动、插件同步及自动记忆等流程,提升了在 CI/CD 或自动化流水线中的响应速度与纯净度。--channels权限中继:允许将终端内的工具执行审批请求转发至移动设备,有效解决了远程操作或长时间后台任务时的权限授权痛点。- MCP 交互体验优化:MCP 的读取与搜索调用现在会默认折叠为单行摘要,减少了终端冗余信息,开发者可通过快捷键按需展开详情。
值得注意的修复
- 多会话身份验证优化:修复了并行开启多个会话时,因其中一个 session 刷新 OAuth Token 而导致其他 session 频繁要求重新认证的冲突问题。
- 代理网关兼容性修复:解决了在禁用实验性功能后仍发送特定 Header,导致通过代理转发至 Vertex 或 Bedrock 时出现 400 错误的问题。
个人评价
v2.1.81 是一个典型的以「工程化落地」为导向的迭代版本。--bare 标志的引入,意味着 Claude Code 正在从纯交互式 AI 助手向可编程的开发者工具转型。通过对 OAuth 并行机制、工作区(Worktree)状态恢复以及复杂网络环境下错误处理的细致修补,该版本显著提升了工具在企业级开发环境中的健壮性。虽然没有视觉上的巨大变化,但对于重度依赖 CLI 自动化的开发者来说,其稳定性和灵活性的提升具有极高的实战价值。
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-03-21 08:00:26