Skip to main content

Module session_store

Module session_store 

Source
Expand description

JSONL-based session persistence for channel conversations.

Each session (keyed by channel_sender or channel_thread_sender) is stored as an append-only JSONL file in {workspace}/sessions/. Messages are appended one-per-line as JSON, never modifying old lines. On daemon restart, sessions are loaded from disk to restore conversation context.

Structs§

SessionStore
Append-only JSONL session store for channel conversations.

Functions§

sanitize_session_key
Replace every character outside [A-Za-z0-9_-] with _. Idempotent.