Your hooks now stay wired up through session resume and non-interactive runs.
What's wrong with this entry?
References to the session hook registry roughly triple. It is now passed into session resume, the turn host binding, and the headless query context, so hook state survives a resume and is available to non-interactive turns. Which individual hook events behave differently as a result is not visible from the wiring alone.
sessionHooks
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.236
Hooks and Ctrl-C go quiet once shutdown has started
Both mention hook
-
v2.1.236
Shutdown seals transcript writes and gives SessionEnd hooks more time
Both mention hook