Unclear What makes Claude Code decide a hook's path needs quoting is not stated.
What
A hook is a command you configure to run automatically at certain points, for example after Claude uses a tool. This release changes two things about hooks:
- Hook commands now go through a repair step that adds quotes around file paths. It only applies when none of the settings that guard against it are set. Before, the command ran as written, or with only the shell prefix added. Claude Code records whether the repair was applied.
PostToolUsehooks, which run after a tool call succeeds, have a new path for results from the computer tool, the tool Claude uses to control a screen. When such a hook tries to rewrite that result and the rewrite is dropped, this is now recorded and the hook gets a dedicated system message.
Why
Hooks whose file paths contain spaces may start working without you adding quotes by hand. If you have a PostToolUse hook that changes computer-tool results, note that its changes can be dropped, and you should now be told when that happens.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What makes Claude Code decide a hook's path needs quoting is not stated.