Claude Code 2.1.329+: plannotator tool annotate/review never opens — tool.run no longer reaches the tool.* glob hook
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start in hooks/mod/register.ts: read the existing on('tool.*', RUN_MATCHER, …) hook, the answerAtRun/answerModTool path, and the Bash take-over branch that also opens at tool.run. Reproduce with PLANNOTATOR_MOD_DEBUG=1 on Claude Code 2.1.330 and confirm tool.run is missing while tool.call and tool.check arrive. Add an explicit tool.run registration behind an engine-version check, because pre-2.1.326 modules naming that event fail to load; done means annotate/review open on 2.1.329+ and older engines still load.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
On Claude Code 2.1.329 and 2.1.330 (Team/Enterprise login, where cc-plugin-sec-default is seated), the plannotator tool's annotate / review / last actions fail every time:
plannotator registered the tool plannotator but no hook answered this call: add on("tool.run", { tool: "mcp__plannotator__plannotator" }, ($, e) => ({ result: ... })) to the plugin.
list and close still work, because they are answered at tool.call. Last good version: 2.1.328. Plugin version: 0.29.0. 0.29.2 doesn't seem to change this path.
This is a follow-up to https://github.com/backnotprop/plannotator/issues/3578. The fix for that issue passes a held call on and opens it at tool.run, using the on('tool.*', RUN_MATCHER, …) hook in hooks/mod/register.ts.
Cause
Starting with 2.1.329, the engine no longer sends tool.run to a hook registered with the tool.* glob. The same hook still receives the tool's other events. Debug log (PLANNOTATOR_MOD_DEBUG=1), with a one-line trace added at the top of the tool.* hook:
mcp__plannotator__plannotator call: Claude Code's guard holds it until it is allowed; passed on, opened at tool.run
[tool.* probe] event=tool.call tool=mcp__plannotator__plannotator
[tool.* probe] event=tool.check tool=mcp__plannotator__plannotator
(no tool.run event; the call falls through to the plugin-tools server's "no hook answered" fallback)
The matcher isn't the cause. Adding the literal 'mcp__plannotator__plannotator' to RUN_MATCHER.tool changes nothing: tool.call and tool.check already arrive.
Workaround (verified on 2.1.330)
Registering tool.run explicitly delivers the event, and the review opens:
// hooks/mod/register.ts, after the existing on('tool.*', RUN_MATCHER, …) hook
on('tool.run', RUN_MATCHER, async ($: Engine, e: any, next: Next) => {
if (allowed && toolName && e.tool === toolName) return answerAtRun(await answerModTool($, e))
return next(e)
})
Trace with that hook in place: [tool.run probe] tool=mcp__plannotator__plannotator, then the annotate page opened.
On an engine before 2.1.326, a module that names tool.run fails to load, as the comment on the existing hook notes. So the upstream fix probably needs to register it only where the engine supports the event. The same change likely applies to the Bash take-over branch, which also opens at tool.run.
Environment
- Claude Code 2.1.330 (also seen on 2.1.329; 2.1.328 works), Linux (WSL2)
- plannotator plugin 0.29.0, interactive CLI session, auto mode / tool allowed via
--allowedTools
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 649
- Merge trung bình
- 16 giờ 1 phút
- Pull request đã merge (30 ngày)
- 756
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
backnotprop/plannotator#4132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
backnotprop/plannotator#4051 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PR description is hidden when a PR review opens on a phoneCó thể đã có người làm @flipcyde101 đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
backnotprop/plannotator#3667 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của backnotprop/plannotator
Issue tương tự
-
enhancement status:needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
dongdongbh/Mindwtr#1625 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
duckdb/duckdb-wasm#2335 ·
Maintainer thường phản hồi trong vòng 1 ngày