Expand description
Session display titles — defaults, heuristics, and sanitization.
Cheap placeholder at create time, then a short human-readable title once the conversation has content. WhyCodes goes further with an instant offline heuristic before any LLM call.
Enums§
- Title
Source - Where the current session title came from.
Functions§
- default_
title - Default display name: project basename + two hex chars from the session id.
- heuristic_
title - Instant offline title from the first user message.
- infer_
source_ from_ title - Infer source when loading a row that predates
title_sourcepersistence. - looks_
like_ default_ title - True when
titlestill looks like an auto placeholder for this project. - sanitize_
title - Normalize a model- or heuristic-produced title for storage/display.