Expand description
Session persistence.
Saves and restores conversation state across sessions. Each session
gets a unique ID and is stored as a JSON file in the sessions
directory (~/.config/agent-code/sessions/).
Structs§
- Session
Data - Serializable session state.
- Session
Summary - Brief summary of a session for listing.
Functions§
- list_
sessions - List recent sessions, sorted by last update (most recent first).
- load_
session - Load a session from disk by ID.
- new_
session_ id - Generate a new session ID.
- save_
session - Save the current session to disk.
- save_
session_ full - Save the full session state to disk (including cost and token tracking).