Claude Code:新增设置:Linux沙箱命令可创建用户命名空间
新增sandbox.allowNestedUserNamespaces,Linux上沙箱内命令可创建用户命名空间,但这会使其绕过沙箱的文件保护。
- 事件类型
- 功能更新
- 版本
- 2.1.305
- 官方发布
- 本站整理
本次变化
共 5 条要点
新增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 新增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 修复在端点或网关拒绝工具搜索时,Vertex、Bedrock等提供方上所有请求均失败的问题。
官方原文 · c3
Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search
官方原文 · c3 修复磁盘已满时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 /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
变化明细
下表字段直接取自官方原文,保持原文语言,不做翻译。
| 编号 | 主体 | 动作 | 对象 | 范围 |
|---|---|---|---|---|
| c1 | Claude Code | added | sandbox.allowNestedUserNamespaces so sandboxed commands can create user namespaces | Linux sandboxed commands (Chromium, rootless podman); lets them get around the sandbox's file protections |
| c2 | Claude Code | added | CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode notices a usage limit lifted before its reset | unattended retry mode |
| c3 | Claude Code | fixed | every request failing when the endpoint or a gateway rejects tool search | Vertex, Bedrock and other providers |
| c4 | Claude Code | 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 | full disk |
| c5 | Claude Code | 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 | /artifacts delete confirmation |
版本时间线
同一工具在本站已发布的快讯,按官方发布日期由新到旧。
- 当前新增设置:Linux沙箱命令可创建用户命名空间
- api_request 事件新增缓存写入拆分字段
关于这个工具
相关教程
- AI 编程工具怎么选:IDE、终端与费用条件按 IDE、终端等工作场景,核对 Cursor、GitHub Copilot、Cline、Codex、Claude Code 和 OpenCode 的登录与费用条件;未确认项明确标注。
- AGENTS.md 和 CLAUDE.md:Claude Code 读哪个、怎样共用一份默认只有 AGENTS.md 才读它,有 CLAUDE.md 则只读后者;@AGENTS.md 可共用。未实测,以官方为准
- Claude Code code-review 插件(插件命令,不是 Skill)Anthropic 官方 code-review 插件:用 /code-review 对 PR 做多代理审查,依赖 gh CLI,未实测
- frontend-design:让界面设计避开模板默认Anthropic 官方 frontend-design 技能:做界面前先出设计方案并对照需求自查,避开模板化默认。未实测,以官方原文为准。
- 大仓库按目录分指令大仓库里按目录拆 AGENTS.md 与 CLAUDE.md:给示例目录树,逐工具对照加载范围、嵌套优先级和冲突规则。按官方文档核对,未实测。
- skill-creator:写、改、评估技能的官方技能Anthropic 官方 skill-creator 技能:带你起草技能、跑评估、改写并优化触发描述。未实测,请以官方原文和文档为准。
- webapp-testing Skill:用 Playwright 操作本地网页应用Anthropic 官方 webapp-testing Skill:用 Python Playwright 脚本验证本地网页,未实测
来源与说明
官方原文 · github.com/anthropics/claude-code/releases/tag/v2.1.305
AI 整理说明
本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。