Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

A prompt-submit hook can rename the session

Use it now
Useful4 Signal3
Hooks Notable

A prompt-submit hook can now rename the current session and inject extra messages into the turn.

What

Hooks that run when you submit a prompt can now hand back a session title, which Claude Code applies to the current session, along with extra user or attachment messages that get folded into the turn.

Details
  • The title is applied from a record matched by the submission's uuid; if applying it fails, Claude Code logs Failed to apply a folded prompt.submit session title and continues with the turn.
  • Only the attachment and user messages from that record are passed on; the rest of the record is bookkeeping.
  • A submission is treated as still pending while it is drain-only, waiting on screening, or its screening result is stale.
Evidence

Failed to apply a folded prompt.submit session title

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.247 →