Hook callbacks tied to a replaced SDK host now answer from a stored result instead of hanging.
What's wrong with this entry?
Each hook callback records which generation of the SDK host it belongs to. If that host has since been replaced and a retirement answer is on file, the callback answers from that instead of sending a request to a host that is no longer listening.
retiredHostHookAnswer
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