A prompt-submit hook can now rename the current session and inject extra messages into the turn.
What's wrong with this entry?
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.
- 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 titleand 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.
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.
-
v2.1.234
SessionEnd hooks lose the
bypass_permissions_disabledreasonBoth mention hook
-
v2.1.236
Hooks and Ctrl-C go quiet once shutdown has started
Both mention hook
-
v2.1.236
Shutdown seals transcript writes and gives SessionEnd hooks more time
Both mention hook