pub fn list_sessions(
base_dir: &Path,
current_session_id: Option<&str>,
) -> Vec<SessionInfo>Expand description
List resumable sessions under base_dir/sessions/.
Scans session directories, filters out locked / empty / current sessions,
and returns entries sorted by messages.jsonl mtime descending (newest first).
Any framework consumer can use this to present a session history list.