Expand description
Session persistence for conversation history
This module provides functionality to save and restore chat sessions, enabling users to resume previous conversations.
§Storage Location
Sessions are stored in ~/.syncable/sessions/<project_hash>/session-{timestamp}-{uuid}.json
§Features
- Automatic session recording on each turn
- Session listing and selection by UUID or index
- Resume from “latest” or specific session
Structs§
- Conversation
Record - Represents a complete conversation record stored on disk
- Message
Record - A single message in the conversation
- Serializable
Tool Call - Simplified tool call record for serialization
- Session
Info - Session information for display and selection
- Session
Recorder - Records conversations to disk
- Session
Selector - Selects and loads sessions
Enums§
- Message
Role - Role of the message sender
Functions§
- browse_
sessions - Display an interactive session browser and return the selected session
- format_
relative_ time - Format relative time for display