EN

Claude Code:新增设置:Linux沙箱命令可创建用户命名空间

新增sandbox.allowNestedUserNamespaces,Linux上沙箱内命令可创建用户命名空间,但这会使其绕过沙箱的文件保护。

Claude Code
事件类型
功能更新
版本
2.1.305
官方发布
本站整理

本次变化

共 5 条要点

  1. 新增sandbox.allowNestedUserNamespaces,Linux上沙箱内命令可创建用户命名空间(如Chromium、rootless podman),但会绕过沙箱文件保护。

    官方原文 · c1

    Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox's file protections

    官方原文 · c1
  2. 新增CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS,使无人值守重试模式能发现重置前已解除的用量限制。

    官方原文 · c2

    Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode ( CLAUDE_CODE_RETRY_WATCHDOG ) notices a usage limit that was lifted before its reset

    官方原文 · c2
  3. 修复在端点或网关拒绝工具搜索时,Vertex、Bedrock等提供方上所有请求均失败的问题。

    官方原文 · c3

    Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search

    官方原文 · c3
  4. 修复磁盘已满时Bash命令以原始ENOSPC文件路径报错的问题,现在提示磁盘已满且未执行任何命令。

    官方原文 · c4

    Fixed Bash commands on a full disk failing with a raw ENOSPC file path: the error now says the disk is full and that nothing ran

    官方原文 · c4
  5. /artifacts删除确认现在按1或Enter保留、按2删除、按Esc取消,y和n不再有效。

    官方原文 · c5

    Changed the /artifacts delete confirmation to take 1 or Enter to keep, 2 to delete, and Esc to cancel; y and n no longer answer it

    官方原文 · c5

变化明细

下表字段直接取自官方原文,保持原文语言,不做翻译。

编号主体动作对象范围
c1Claude Codeaddedsandbox.allowNestedUserNamespaces so sandboxed commands can create user namespacesLinux sandboxed commands (Chromium, rootless podman); lets them get around the sandbox's file protections
c2Claude CodeaddedCLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode notices a usage limit lifted before its resetunattended retry mode
c3Claude Codefixedevery request failing when the endpoint or a gateway rejects tool searchVertex, Bedrock and other providers
c4Claude CodefixedBash commands on a full disk failing with a raw ENOSPC file path; the error now says the disk is full and that nothing ranfull disk
c5Claude Codechangedthe /artifacts delete confirmation to take 1 or Enter to keep, 2 to delete, and Esc to cancel; y and n no longer answer it/artifacts delete confirmation

版本时间线

同一工具在本站已发布的快讯,按官方发布日期由新到旧。

  1. 当前新增设置:Linux沙箱命令可创建用户命名空间
  2. api_request 事件新增缓存写入拆分字段

关于这个工具

Claude Code

Claude Code 是 Anthropic 的编程 Agent,可围绕代码库读取上下文、修改文件、运行命令并协助开发任务。

分类AI编程工具

查看 Claude Code 详情

相关教程

来源与说明

官方原文 · github.com/anthropics/claude-code/releases/tag/v2.1.305

AI 整理说明

本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。