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.337,
Bug FixesSection of the release
What
When you type a slash command that expands into a prompt, any UserPromptExpansion hooks run first. Hooks are your own scripts that Claude Code runs at set moments. If you stop the command while those hooks are running, Claude Code now checks this once the hooks finish and halts the expansion instead of carrying on. A stopped slash command can also report that it stopped before anything was shown.
Why
Pressing stop during a slash command's hooks now takes effect more precisely, so the expanded prompt does not go ahead after you cancelled it.