plannotator icon indicating copy to clipboard operation
plannotator copied to clipboard

Claude Code 2.1.326 (Team/Enterprise): mod tool cannot start any review — `$.process.run` refused with "this repeats a Bash call that is not allowed"

Open Dennis-Renz opened this issue 2 weeks ago • 1 comments

Environment

  • Plannotator 0.28.67, installed from the GitHub marketplace
  • Claude Code 2.1.326, interactive CLI, macOS 26.6.2
  • Signed in to a Team/Enterprise organization, so the built-in guard cc-plugin-sec-default runs before the mod
  • Worked with Claude Code 2.1.325 the day before. Nothing else changed on the machine.

What happens

Every call of the plannotator tool fails before a page opens:

mcp__plannotator__plannotator { "action": "annotate", "target": "<path>.md", "gate": true }

Plannotator could not start: plannotator: $.process.run: this repeats a Bash call that is not allowed; serve an allowed call at tool.run

Right after the failure, the session shows:

plannotator: its tool.check hook was skipped. "cc-plugin-sec-default" runs first and sent the event on past it.

It fails the same way after updating Plannotator and restarting the session.

Why I think it comes from 2.1.326

The error text is new in 2.1.326. It appears in the 2.1.326 binary and not in 2.1.325:

var ce=(e)=>_({tool:e,input:{}})
  ? `this repeats a ${e} script that another sent; pass it on with next, so the session checks its calls`
  : `this repeats a ${e} call that is not allowed; serve an allowed call at tool.run`

It looks like 2.1.326 now checks $.process.run against the session's Bash permissions. It refuses a launch that matches a Bash call the session does not allow, and points the mod to tool.run instead. The mod runs its processes through $.process.run (apps/hook/hooks/mod/register.ts, hostOf(): run: (argv, init) => $.process.run(argv, init)), and the error says starting the review hits that, so I expect every action that opens a page to be affected. I only tried annotate.

Under the guard, the mod's tool.check hook on Bash is skipped as well, so the mod cannot see or answer the verdict for its own launch.

Workaround

Running the CLI through the agent's Bash tool still works, and that's what we use for now (must be started from another agent turn, not the one the original call failed on):

plannotator annotate <path>.md --gate --json

The page opens and the decision comes back as a message in the session, just like with the tool.

Expected

The tool opens the review page as it did on 2.1.325.

Related

  • #2007 and #2243: the same guard skips other mod hooks (classic.PermissionRequest, prompt.context). Those cost a duplicate review or a notice. This one blocks the tool completely.

Dennis-Renz avatar Nov 17 '26 07:11 Dennis-Renz

Fixed in 0.29.0: the Claude Code mod now opens reviews in a way that Claude Code 2.1.326's guard accepts. Please update, and reopen this if a review is still blocked.

backnotprop avatar Nov 22 '26 20:11 backnotprop