Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.300 ·

Blocked slash command prompts are echoed back less often

When a hook blocks a slash command run in a fork, Claude Code shows the original prompt in fewer cases

You'll notice Improvements
JSON All of v2.1.300
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.300,
ImprovementsSection of the release
What

Hooks are your own scripts that Claude Code runs at set moments, such as UserPromptSubmit when a prompt is submitted, or UserPromptExpansion. Some slash commands run in a fork, a separate copy of the conversation. When a hook blocks one of these, Claude Code used to add "Original prompt:" with your text unless the hook set suppressOriginalPrompt.

The echo is now also left out when:

  • the hook set suppressOriginalPrompt
  • the text you typed differs from the text the hooks saw
  • the hook's state is unknown or has changed

Blocked results are marked as dropped, and a run that was cut short is flagged as such.

Why

A prompt your hook blocked is less likely to show up again in the transcript.

Read from
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up UserPromptExpansion, on Intercept and control agent behavior with hooks. * `UserPromptSubmit` and [`UserPromptExpansion`](/docs/en/hooks#userpromptexpansion): Claude Code blocks the prompt with a message naming the hook and the timeout, and the session continues. Before v2.1.208, Claude Code ended the query wit… agent-sdk/hooks see the edit
Confirmed since Anthropic's documentation has since written up UserPromptSubmit, on Intercept and control agent behavior with hooks. * `UserPromptSubmit` and [`UserPromptExpansion`](/docs/en/hooks#userpromptexpansion): Claude Code blocks the prompt with a message naming the hook and the timeout, and the session continues. Before v2.1.208, Claude Code ended the query wit… agent-sdk/hooks see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up UserPromptSubmit, on Intercept and control agent behavior with hooks.

See this entry in the whole of v2.1.300 →

Feedback