pub async fn append_session_entry(
session_id: &str,
entry: &SessionEntry,
) -> Result<(), AgentError>Expand description
Append one NDJSON session entry to the transcript file.
Creates the session directory if needed, opens the file in append mode, and writes one NDJSON-safe line. This is O(1) per message.