返回全部动态

Claude Code 2.1.294 修复 hooks 拦截与提前停止问题

原标题:2.1.294

Claude Code Changelog一手来源产品发布质量 65

AI 摘要

Claude Code 发布 2.1.294 版本更新,修复了以自然语言指令形式编写的 prompt 和 agent 钩子(hooks)可能放行本应拦截操作的问题。同时改进了 Stop 与 SubagentStop 上 prompt 钩子的判定逻辑,使 Claude 更不容易过早停止。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

- Fixed `prompt` and `agent` hooks written as instructions (such as "Block commands that...") allowing what they should block - Improved how `prompt` hooks on Stop and SubagentStop written as instructions (such as "Carry on if the build is broken") are judged, so Claude is less likely to stop early


发布时间:—
抓取时间:2026-10-08 13:11
来源机构:Anthropic
阅读原文raw.githubusercontent.com