Once you quit, hooks stop firing except SessionEnd and Ctrl-C no longer aborts the request.
What's wrong with this entry?
After shutdown is committed, every hook event other than SessionEnd stops running, and pressing Ctrl-C no longer aborts the in-flight request. Your PostToolUse and other hooks will not fire during an exiting session.
- A commit latch is set by the synchronous shutdown path; hook dispatch then waits on a promise that never resolves, both before dispatching and before returning results.
SessionEndis the sole exception, so end-of-session hooks still run.- The REPL interrupt handler becomes a no-op for the duration, so Ctrl-C during shutdown does nothing rather than cancelling.
hookEventName: wt("PostToolUse")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.234
SessionEnd hooks lose the
bypass_permissions_disabledreasonBoth mention hook
-
v2.1.238
Reconnecting an SDK host swaps its hooks in and settles the ones left waiting
Both mention hook
-
v2.1.238
Hook callbacks remember which host created them
Both mention hook