返回综合榜
开发工具与框架X AI model discovery

Claude Code 2.1.326 在后台任务启动前对格式错误的工具权限规则发出警告

Claude Code 2.1.326 新增启动警告:当通过 --allowedTools、--disallowedTools 或 --tools 传入的值看起来不是完整规则时会给出提示,使权限边界中的拼写错误不再隐藏在看似正常的启动之后。该版本还让恢复的后台会话在预期导出的 LLM 网关配置缺失时,于发起模型请求前停止。

该报道强调,应从真正运行无人值守任务的外层封装来验证,因为干净的交互式会话可能使用不同的标志、读取不同的设置,或从更小的环境启动。建议在那里检查启动警告(Ctrl+O 可显示界面隐藏的警告),并把语法、策略、持久性和运行时这四个问题分开判断。

其他改动包括:在添加权限或目录后若设置无法写入会发出警告并指出受影响的文件,这对容器、只读主目录或所有权问题尤为重要。此外还修复了后台服务清理中过期的进程标识符。

该警告只能发现格式错误的规则,无法判断一条合法规则是否过宽;帖子也指出,启动警告仍需有人或某个机制去注意到。相关说法来自社交媒体账号对发布内容的转述,而非官方发布说明,因此应先在一个可观察的环境中验证,再把无人值守任务恢复上线。

Claude Code 2.1.326 warns on malformed tool-permission rules before background jobs start

Claude Code 2.1.326 adds startup warnings when values passed through --allowedTools, --disallowedTools or --tools do not look like complete rules, so a typo in a permission boundary is not left hidden behind a healthy-looking startup. The release also makes a recovered background session stop before a model request if its expected exported LLM gateway configuration has disappeared.

The report stresses checking from the wrapper that actually runs unattended jobs, since a clean interactive session can assemble different flags, read different settings, or start with a smaller environment. It recommends inspecting startup warnings there (Ctrl+O can reveal warnings the interface has hidden) and separating four questions: syntax, policy, persistence, and runtime.

Other changes warn when settings cannot be written after adding permissions or directories and identify the affected file, which matters for containers, read-only home directories, or ownership problems. There is also a fix for stale process identifiers in background-service cleanup.

The warning only catches malformed rules and cannot decide whether a valid rule is too broad, and the post notes that startup warnings still need someone or something to notice them. The claims come from a social-media account summarizing the release rather than official release notes, so behavior should be verified in one observable environment before returning unattended jobs to service.

clipermissionsreleaseconfigurationbackground-jobs
综合63
质量59
猎物热度51
时效98
信息来源1 个来源,主来源:X AI model discovery

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源