←新闻详情

Claude Devs更新于 11月4日 01:39

Claude Code 新增跳过权限环境变量

Even in bypass permissions mode, Claude Code still asks before a few especially risky rm commands. That’s intentional, but if you’re in a throwaway container an

AI 导读

Claude Code 即使在 bypass permissions 模式下,仍会对少数高风险 rm 命令进行确认;若在一次性容器中希望这些命令也免确认,可设置 CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1。此外,超时的 shell 命令现在会转入后台继续运行,而不是被中断,长时间构建或测试套件不会中途被杀掉。

正文

Even in bypass permissions mode, Claude Code still asks before a few especially risky rm commands. That’s intentional, but if you’re in a throwaway container and are okay with those running without asking, you can now set CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1.

And shell commands that hit their timeout now keep running in the background instead of getting cut off, so a long build or test suite isn’t killed halfway.

来源

Claude Devs