Unclear It is not clear whether this reason is shown to you or only recorded in Claude Code's usage reporting.
What
A hook is your own command that Claude Code runs at set moments, and it replies with output Claude Code checks. Two kinds of bad reply now raise their own type of error, carrying a reason:
- An unknown
permissionDecision: "hook output has an unknown permissionDecision type". - The wrong event: "hook output names a different hook event than the one it ran for".
Why
Hook authors get a categorised reason for a malformed reply, which makes it easier to tell the two mistakes apart.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear whether this reason is shown to you or only recorded in Claude Code's usage reporting.