PostToolUse hooks now get duration_ms, the tool's own run time excluding prompts and hooks.
What's wrong with this entry?
The data passed to a PostToolUse hook now includes an optional duration_ms, the tool's own execution time. It excludes time spent on permission prompts and on other hooks, so it reflects the tool rather than the wait around it.
Tool execution time in milliseconds. Excludes permission-prompt and hook time.
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