跳到正文
ClaudeDevs· @ClaudeDevs · X·· 3 小时前AI 评分61
AI 导读

Claude Code 新增了跳过高危权限确认的环境变量以及 shell 命令超时后转入后台继续运行的机制。在 bypass permissions 模式下设置 CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1 可跳过对危险 rm 命令的最后确认,同时超时 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.

来源:ClaudeDevs · x.com