Claude Code v2.1.233 发布:支持 GitLab Merge Request、用户身份转发与 Linux 内存限制
英文标题:Claude Code v2.1.233
Claude Code v2.1.233 新增 GitLab Merge Request URL 对 `--worktree` 参数和 `claude agents` 视图的支持,并允许应用网关可选转发登录用户身份,以便后端代理按用户归因支出。该版本还为 Linux Bash 工具命令引入基于 cgroup 的可选内存限制,并新增 WebFetch URL 缓存 TTL 配置环境变量。更新修复了云端会话、MCP v2 长连接、通知钩子、Linux 沙箱 CPU 占用、Windows 路径验证等问题,其中包括一个可能导致 NTLM 凭据泄露的安全风险。开发者还需注意,较新的模型默认不再提供 Todo/任务跟踪工具,可通过环境变量重新启用。
打开原文相关 13.2 · 机会 3
1.3 KB
53.3 KB
中文
更新内容
- 为
--worktree参数和claude agents视图新增 GitLab Merge Request URL 支持(MR 在视图中显示为!N) - 在 Anthropic 上游新增可选的
forward_user_identity应用网关设置,将已登录用户的身份作为请求头发送,使网关后方的代理能够按用户归因支出 - 为 Linux 上的 Bash 工具命令新增可选的内存 cgroup 支持(
CLAUDE_CODE_TOOL_MEMORY_LIMIT),避免失控的构建任务拖慢整个会话 - 新增
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS环境变量,用于配置 WebFetch 会话 URL 缓存的 TTL(默认值保持不变:15 分钟) - 修复了当 Claude 正在等待权限提示、而运行环境关闭时,云端会话偶尔被标记为丢失的问题
- 修复了 MCP v2 连接针对以固定超时终止长时间持有流的服务器(例如无服务器托管环境)不断重新打开
subscriptions/listen流的问题 - 修复了在 Claude Desktop 或 VS Code 中运行时,权限提示未触发 Notification 钩子的问题
- 修复了启用沙箱后,Linux 上的空闲会话有时会持续让一个 CPU 核心保持 100% 占用的问题
- 修复了当用户或项目技能覆盖内置技能时,
/checkup、/review等内置技能别名在-p模式下或加载插件/MCP 时报告“Unknown command”的问题 - 修复了技能/命令参数替换逻辑,防止参数值被再次扩展为模板标记
- 修复了使用 NT
\??\设备前缀拼写的 Windows 路径可绕过 UNC 路径验证的问题,堵住了一个 NTLM 凭据泄露风险 - 改进
claude self-hosted-runner的会话启动速度:现在创建会话分支时无需重写工作树,且不再由两次服务器往返阻塞 Agent 启动 - 改进应用网关错误转发:来自 Vertex、Foundry 以及 AWS 上 Claude Platform 上游的 400/413 错误现在会携带上游自身的错误消息;同时修复了应用网关中的自动压缩(auto-compact)问题
- 改进
claude plugin validate,使其能够检查独立的.claude/skills目录,并报告 frontmatter 解析失败的 SKILL.md 文件 - 改进屏幕阅读器模式:
/effort选择器现在以带编号的列表和数字输入提示呈现,提示文本与对话框文本不再被截断 - 改进打印模式诊断:当请求发送给 Claude Code 无法识别的模型 ID 时,会向 stderr 写入
[claude-code:unrecognized_model]行;可使用modelOverrides进行映射以消除此提示 - 调整 GitHub 应用设置提示:当仓库的 origin 远程地址位于 gitlab.com 或 bitbucket.org 时,不再显示该提示;企业市场提示现在覆盖非 GitHub 的内部 Git 托管服务
- Todo/任务跟踪工具(TaskCreate/Get/Update/List、TodoWrite)不再适用于 Opus 4.8、Sonnet 5、Fable 5、Mythos 5 及更高版本模型;设置
CLAUDE_CODE_ENABLE_TODO_TOOLS=1可重新启用 - Windows:修复自动模式对普通
cd <dir> && <command> > fileBash 命令反复停止并要求手动批准的问题(这是 2.1.232 版本引入的回归) - 撤回 2.1.232 中针对 Windows Cygwin 风格符号链接和输入重定向(
< file)的 Bash 权限变更;范围更精确的版本将在后续版本中回归
English / 原文
Compare
Sorry, something went wrong.
No results found
What's changed
- Added GitLab merge request URL support to the
--worktreeflag and theclaude agentsview (where MRs display as!N) - Added an opt-in
forward_user_identityapps gateway setting on Anthropic upstreams that sends the signed-in user's identity as headers, so a proxy behind the gateway can attribute spend per user - Added opt-in memory cgroup support for Bash tool commands on Linux (
CLAUDE_CODE_TOOL_MEMORY_LIMIT) so a runaway build can't stall the session - Added
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MSenvironment variable to configure the WebFetch session URL cache TTL (default unchanged: 15 minutes) - Fixed cloud sessions occasionally being marked as lost when the environment shut down while Claude was waiting on a permission prompt
- Fixed MCP v2 connections endlessly reopening the subscriptions/listen stream against servers that terminate long-held streams on a fixed timeout (e.g. serverless hosts)
- Fixed Notification hooks not firing for permission prompts when running under Claude Desktop or VS Code
- Fixed idle sessions on Linux sometimes keeping one CPU core at 100% when sandboxing is enabled
- Fixed bundled skill aliases like
/checkupand/reviewreporting "Unknown command" in-pmode or with plugins/MCP loaded when a user or project skill shadows the bundled skill - Fixed skill/command argument substitution to prevent argument values from being re-expanded as template markers
- Fixed Windows paths spelled with the NT
\??\device prefix bypassing UNC path validation, closing an NTLM credential-leak vector - Improved
claude self-hosted-runnersession start time: the session branch is now created without rewriting the working tree, and two server round trips no longer block the agent's launch - Improved apps gateway error forwarding: 400/413 errors from Vertex, Foundry, and Claude Platform on AWS upstreams now carry the upstream's own message; fixes a bug with auto-compact on apps gateway
- Improved
claude plugin validateto check a bare.claude/skillsdirectory, reporting SKILL.md files whose frontmatter fails to parse - Improved screen reader mode: the
/effortselector renders as a numbered list with a typed-number prompt, and hint and dialog text is no longer clipped - Improved print mode diagnostics: a
[claude-code:unrecognized_model]line is written to stderr when a request goes out for a model ID Claude Code doesn't recognize; map it withmodelOverridesto silence - Changed the GitHub app setup tip to no longer appear in repositories whose origin remote is on gitlab.com or bitbucket.org; the enterprise marketplace tip now covers non-GitHub internal git hosts
- Todo/task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) are no longer available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, and newer models; set
CLAUDE_CODE_ENABLE_TODO_TOOLS=1to bring them back - Windows: fixed auto mode repeatedly stopping for manual approval on ordinary
cd <dir> && <command> > fileBash commands (a 2.1.232 regression) - Reverted the 2.1.232 Bash permission changes for Cygwin-style symlinks on Windows and for input redirections (
< file); a narrower version will return in a later release
You can’t perform that action at this time.