🤖 Claude Code 更新 v2.1.81
发布日期: 2026-03-23
📋 版本维护
✨ 新增功能
- 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脚本模式:专为自动化流程设计,调用时可跳过插件同步、LSP 启动及 Skill 目录扫描,显著提升了在脚本环境(如 CI/CD)中执行任务的响应速度。 - 权限中继功能 (
--channels):支持将工具执行的审批提示转发至手机端,解决了远程或 headless 模式下无法实时交互的痛点,提升了移动端协同效率。 - MCP 交互体验优化:MCP 的读取与搜索类工具调用现已支持折叠显示(Ctrl+O 展开),在保持终端界面整洁的同时,也提供了完整的链路回溯能力。
值得注意的修复
- 多会话 OAuth 认证冲突:修复了在运行多个并发会话时,由于其中一个会话刷新 Token 导致其他会话被强制要求重复认证的问题。
- 代理网关兼容性修复:修正了
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS无法完全抑制结构化输出请求头的问题,解决了在 Vertex 或 Bedrock 代理环境下触发 400 错误的情况。
个人评价
Claude Code v2.1.81 是一个典型的工程化增强版本,其重心从单一的对话交互转向了「更成熟的生产力集成」。--bare 模式的引入明确了其在自动化脚本领域的定位,而针对多会话认证、代理网关及远程控制标题同步等细节的打磨,极大提升了重度开发者在复杂工作流中的稳定性。整体而言,这一版本在保障交互一致性的基础上,通过优化资源占用与权限链路,使其更加适配现代软件工程的多种开发场景。
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-03-23 08:00:30