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 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.
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.