Skip to main content

Module title

Module title 

Source
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§

TitleSource
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_source persistence.
looks_like_default_title
True when title still looks like an auto placeholder for this project.
sanitize_title
Normalize a model- or heuristic-produced title for storage/display.