You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hooks: a Stop hook exits non-zero with no stderr and the report names no hook #2593
A Stop hook exits non-zero while writing nothing to stderr, and the resulting report names no hook.
Observed
Ran 5 stop hooks
Stop hook error: Failed with non-blocking status code: No stderr output
Non-blocking, so the session continued — but the failure is undiagnosable as reported:
The failing hook is not named. Five ran; the error attributes to none of them.
There is no diagnostic. The hook exited non-zero and wrote nothing to stderr, so there is no message to act on.
Two candidate owners
Whichever hook is failing should either exit zero or explain itself. Silent non-zero exit is the defect.
The reporting could name the failing hook. If the harness surfaces enough to attribute it, doing so turns an unactionable line into an actionable one.
Worth checking first
claude-ops ships a Stop-hook failure audit (hook_failure_audit_enabled) built to surface exactly this class of silent launch failure. If it is installed and disabled on this machine, enabling it may name the culprit without any new code — in which case this issue reduces to a configuration note plus whatever the named hook's own bug turns out to be.
Next step
Enumerate registered Stop hooks across user settings and every installed plugin's hooks.json, run each in isolation, and identify which one exits non-zero silently.
Residual filed as issue 2849. PR 2625's exitCode attribution shipped and works. Its empty-stderr placeholder does not: the branch keys on .stderr == "", but the harness never hands the hook an empty stderr — it synthesizes a sentence — so the placeholder is dead code (0 of 175 records measured 2026-08-16) while the unconditional "fails to launch" wording still reaches the operator on the completed-non-zero-exit case this issue was written for.
Activity
fix(claude-ops): attribute silent Stop hook failures with exitCode (#…
kyle-sexton commentedon Aug 16, 2026
Residual filed as issue 2849. PR 2625's exitCode attribution shipped and works. Its empty-stderr placeholder does not: the branch keys on
.stderr == "", but the harness never hands the hook an empty stderr — it synthesizes a sentence — so the placeholder is dead code (0 of 175 records measured 2026-08-16) while the unconditional "fails to launch" wording still reaches the operator on the completed-non-zero-exit case this issue was written for.fix(claude-ops): branch hook-failure-audit on launch failure vs compl…