Skip to main content

Module session

Module session 

Source

Structs§

ConversationHistory
A complete conversation history
ConversationManager
Manages conversation persistence for a project
SessionEntry
One row in the picker: a conversation plus its on-disk size (shown in the meta line; not stored on the history itself).

Functions§

detect_git_branch
Best-effort current git branch of dir, for labelling --resume rows. None when dir isn’t a git work tree, git is absent, or HEAD is detached. Kept out of the pure reducer — callers invoke it in the impure startup path and stamp the result onto the conversation.
select_conversation
Show the searchable resume picker and return the chosen conversation, or None if the user cancelled. now is injected so the relative-time labels are testable and match the caller’s clock.