Documentation
¶
Overview ¶
Package sessiontitle resolves human-readable Claude Code session titles from transcript metadata. It is read-only and best-effort: callers fall back to the session UUID when no title can be resolved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTitle ¶
CleanTitle sanitizes a Claude session title for display in the TUI board header. It drops every non-whitespace control rune (unicode.IsControl && !IsSpace — the ESC byte that introduces an ANSI sequence, plus BEL and OSC terminators) so a /rename title can't inject escape sequences into the terminal. Once ESC is gone, any leftover body (e.g. "[31m") is inert text. Whitespace control runes (space/tab/newline/CR) are KEPT so strings.Fields collapses them to single spaces rather than gluing words together.
Types ¶
This section is empty.