Claude Code v2.1.221 ·
Session titles are normalised and blank titles rejected
Session titles are trimmed and cleaned, and blank ones are simply ignored instead of set.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.221,
ImprovementsSection of the release
What
Setting a session title now trims and sanitises the string first, and returns null without setting anything if nothing survives.
Details
- Applies to titles from hooks, from the user, and from automatic naming.
- The hook path no longer writes the name separately through the older two-call route.
- The shared helper now handles
--name propagation for non-auto sources.
Evidence
nameSource: "user"
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.221 →