Under the hood
Hook module reload failures now log which version and text they expected
What
When Claude Code's hooks module fails to reload after being flagged as needing an update, it now records more detail about the failure: a generation number, the text that was expected, and the error itself. This gets stored in a map of reload failures that the existing retry logic already relies on.
Why
This gives more diagnostic detail when a hooks configuration fails to reload, making it easier to figure out why a reload attempt failed and what the retry logic saw.