Claude Code v2.1.333 ·
Reloading hooks now cleans up removed hook modules and rebuilds them when trust changes
When hooks reload, removed hook modules release anything keeping the computer awake, and kept ones are rebuilt if the folder's trust status changed
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
Bug FixesKind: in v2.1.333,
Bug FixesSection of the release
What
Hooks are your own commands or scripts that Claude Code runs at set moments. When Claude Code reloads its hook modules, it now behaves differently:
- Modules that are no longer loaded release any hold they had on keeping the computer awake.
- Anything those modules were waiting on before exiting is cancelled.
- Modules that are kept are reused only if the folder's trusted or untrusted status has not changed. Otherwise they are rebuilt.
Why
A change in whether a folder is trusted now forces hook modules to be built again, so modules set up under the old trust status are not carried over.
See this entry in the whole of v2.1.333 →