Rank, 14 days: 250 on the Codex sheet
3 people reported
All time, since Sep 25, including 1 thumbs-up on GitHub.
Hook exit-2 deny not blocking
“Windows PowerShell 5.1 reports a failing native command's exit code as 1: a hook that exits 2 makes powershell.exe exit 1.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/codex/issues/12749/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
PreToolUse exit-2 deny does not block on Windows. Hooks run under powershell -Command or pwsh -Command, which reports exit 1 instead of 2, so the tool runs anyway.
Is this your bug?
File my report- Where
- PreToolUse hooks
- Error text
hook exited with code 1- Versions
- 0.157.0 to 0.161.0
- Platforms
- Windows
- How bad
- Security risk: something exposed, or done without permission.