Repository navigation
Closed
Description
Environment
- Plannotator 0.28.23 (marketplace commit 51d78eb), installed from the GitHub marketplace (user tier)
- Claude Code 2.1.304, interactive CLI, Linux
- Signed in with
/loginon a Team/Enterprise organization, so Claude Code seats its built-in guardcc-plugin-sec-default@builtinoutermost. There is no managed-settings file on the machine, and server-managed settings are empty.
What happens
Since 2.1.304, every session shows these transcript lines:
plannotator: its prompt.context hook was skipped. "cc-plugin-sec-default" runs first and sent the event on past it.
plannotator: its classic.PermissionRequest hook was skipped. "cc-plugin-sec-default" runs first and sent the event on past it.
The 2.1.304 changelog added this line ("Added a transcript line when a plugin that runs first skips one of your mod's hooks"). The guard is documented to keep user-installed mods away from prompt content and permission decisions on org accounts (https://code.claude.com/docs/en/plugins/mods/admin), so the skipping itself looks intended. Its effect on Plannotator's plan flow is the problem:
- The first ExitPlanMode works: the mod's
tool.callhook denies with "waiting for review" and opens the review. Approving it sends the "Approved" plugin turn as expected. - The second ExitPlanMode reaches
classic.PermissionRequest, but the guard skips the mod's hook (hooks/mod/register.ts, theon('classic.PermissionRequest', …)handler). The mod never gets to answer with the approved decision, so the event falls through to:- the plugin's own classic
PermissionRequestcommand hook (hooks/hooks.json, matcherExitPlanMode,plannotator), which starts a second Plannotator review server, and - Claude Code's normal plan-approval dialog in the terminal.
- the plugin's own classic
- The user approves in the terminal dialog. The second review server keeps running in the background and waits until it is killed manually.
As a result, each plan is approved twice and leaves an orphan plannotator process behind.
Evidence (one test session, UTC)
- 08:53:55 first ExitPlanMode → "Plan v1 is open in Plannotator for the user's review (http://localhost:42731)"
- 08:54:51 Plannotator "Plan v1 — Approved" turn
- 08:54:53 second ExitPlanMode, and at the same timestamp:
plannotator: its classic.PermissionRequest hook was skipped. "cc-plugin-sec-default" runs first… - 08:54:53 a new
plannotatorprocess starts (PLANNOTATOR_SESSION_TAG=claude-code:<this session>), listening on 127.0.0.1:37167 - 08:55:04 ExitPlanMode allowed after approving Claude Code's own dialog
- Only one approved plan file is written in
~/.local/share/plannotator/plans/.
The prompt.context skip only drops the Inbox reminder line. The Inbox tool still registers and works.
Repro
- Use a Claude Code session that loads
cc-plugin-sec-default: Team/Enterprise/login, or any machine with managed settings. - Enter plan mode, call ExitPlanMode, and approve in Plannotator.
- When Claude calls ExitPlanMode again, the terminal approval dialog appears and a second review server starts.
Suggestions
- Detect that the mod's
classic.PermissionRequesthook cannot run there, for example from the guard being seated or from the skip, and fall back cleanly. Either don't open the review twice (the classic command hook could recognise a plan that was already approved for this session or tool_use and allow it), or let the classic hook own the whole flow in that case. - Document the workaround for org admins: make Plannotator an organization mod (directory marketplace at an admin-owned path, managed
enabledPlugins, andprependPlugins: ["plannotator@plannotator", "sec-default@builtin"]), or turn the mod off with"claudeCodeMod": false/PLANNOTATOR_CLAUDE_MOD=0.
Reacted by Dimas Rangga
Activity
derangga commentedon Oct 21, 2026
This also happened to me, I use the same version claude code and plannotator
haseeb5i commentedon Oct 21, 2026
Same here on Claude Code 2.1.306 (Linux, interactive CLI) with Plannotator 0.28.22, signed in to a Team/Enterprise org. Every session shows:
So it is still present two Claude Code releases after 2.1.304. A fix in Plannotator itself would be much appreciated, since turning off the mod or having an org admin re-seat it are not practical options for us.
Classic hook: take a mod approval only if its plan matches its hash, …
Merge pull request #2043 from backnotprop/fix/mod-plan-approval-guard
backnotprop commentedon Oct 21, 2026
Fixed in #2043.
Claude Code mod: one plan approval when the plugin guard skips the mo…