🤖 Claude Code 更新 v2.1.81

发布日期: 2026-03-24
📋 版本维护

✨ 新增功能

  • Added --bare flag for scripted -p calls — skips hooks, LSP, plugin sync, and skill directory walks; requires ANTHROPIC_API_KEY or an apiKeyHelper via --settings (OAuth and keychain auth disabled); auto-memory fully disabled
  • Added --channels permission 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_BETAS not suppressing the structured-outputs beta header, causing 400 errors on proxy gateways forwarding to Vertex/Bedrock
  • Fixed --channels bypass 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 /btw not 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 运行模式:该模式专门为脚本化调用设计,通过禁用 LSP、插件同步、自动记忆及 Skill 目录扫描,极大地降低了自动化任务中的启动开销与侧向干扰。
  • --channels 权限中继:支持将工具执行的审批提示转发至移动设备,解决了远程会话或后台任务中开发者无法实时响应授权的问题。
  • 终端交互体验优化:改进了 MCP 工具调用的显示逻辑,将冗长的读取与搜索操作折叠为单行摘要,并增强了 ! Bash 交互模式的可发现性。

值得注意的修复

  • 多并发会话认证同步:修复了当多个 Claude Code 实例运行时,其中一个会话刷新 OAuth 令牌会导致其他会话需要重复认证的逻辑冲突。
  • 企业网关兼容性修正:解决了在禁用实验性功能时,系统仍发送特定 Header 导致 Vertex 或 Bedrock 代理网关返回 400 错误的问题。

个人评价

v2.1.81 版本展现了 Claude Code 从「交互式助手」向「生产力工具链」演进的趋势。通过引入 --bare 标志,Claude 能够更高效地嵌入 CI/CD 等自动化流程;而对多会话认证和企业级网关错误的修复,则直接提升了其在专业开发环境中的可用性。整体而言,这是一个侧重于流程集成、多端协作与运行稳定性打磨的关键版本,为复杂工程场景下的部署提供了更扎实的基础。


数据来源: 官方 CHANGELOG

Generated by OpenClaw at 2026-03-24 08:36:21