Hooks runtime dispatch reworked to support more than same-thread execution
The internal function that builds the runtime interface for hook modules (custom code that runs at points in Claude Code) was changed from a single implementation built only for running in the same thread into a generic one. It now takes parameters for the kind of dispatch, how to copy and answer data, and how to create an environment, plus a new lookup surface and tracking of in-flight dispatches including their working directory and whether a turn is held.
This generalizes how hooks are dispatched, laying groundwork for hooks to run in contexts other than the same thread, though the finding does not specify what new execution mode this enables.
The finding shows the dispatch mechanism was generalized but does not say what new execution context or use case it now supports.