Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

A check about UserPromptSubmit hooks now gives the opposite answer

A check that used to pass only when no UserPromptSubmit hook existed now passes when one exists or hooks cannot be read

Under the hood Internal Changes
JSON All of v2.1.334
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
Internal ChangesKind: in v2.1.334,
Internal ChangesSection of the release

Unclear Which behaviour this check controls is not known, so its visible effect cannot be described.

What

A UserPromptSubmit hook is a script that runs when you submit a prompt, before Claude processes it. Claude Code uses an internal yes-or-no check about these hooks, and it has been turned around.

  • Before, it said yes only when no UserPromptSubmit hook was set up and CLAUDE_CODE_REMOTE was not set, among other conditions.
  • Now, it says yes when the hook settings cannot be read or when a UserPromptSubmit hook exists.
  • It no longer looks at CLAUDE_CODE_REMOTE or the other conditions.
Why

This changes when some hook-related behaviour is offered or applied, so people who use UserPromptSubmit hooks may notice a difference.

Read from
Names in the bundleUserPromptSubmit
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 UserPromptSubmit, on Intercept and control agent behavior with hooks. Claude Code runs each callback with a timeout, which you set in seconds with the `timeout` field on its `HookMatcher`. When you don't set one, Claude Code uses the event's default: 600 seconds for most events, 30 seconds for `UserPromptSub… agent-sdk/hooks see the edit
Added since A small documentation edit on Intercept and control agent behavior with hooks touched a line naming UserPromptSubmit after this was published. A `UserPromptSubmit` hook that spawns subagents can create infinite loops if those subagents trigger the same hook. You can prevent the loop in the following ways: agent-sdk/hooks see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich behaviour this check controls is not known, so its visible effect cannot be described.
Anthropic's documentation agreesA small documentation edit on Intercept and control agent behavior with hooks touched a line naming UserPromptSubmit after this was…

See this entry in the whole of v2.1.334 →

Feedback