Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Stopping a slash command during hooks now halts it before it expands

If you stop a slash command while its expansion hooks run, Claude Code now halts the expansion and can report it stopped before anything showed

You'll notice Bug Fixes
JSON All of v2.1.337
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.

Read from
Names in the bundleUserPromptExpansion
What the documentation says

See this entry in the whole of v2.1.337 →

Feedback