Module persistence

Module persistence 

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

ConversationRecord
Represents a complete conversation record stored on disk
MessageRecord
A single message in the conversation
SerializableToolCall
Simplified tool call record for serialization
SessionInfo
Session information for display and selection
SessionRecorder
Records conversations to disk
SessionSelector
Selects and loads sessions

Enums§

MessageRole
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