pub fn list_recent_sessions(limit: usize) -> Result<Vec<SessionInfo>, Error>Expand description
The limit most-recently-modified sessions (by file mtime), most-recent
first. Sorts the directory entries by mtime WITHOUT parsing, then reads only
the top limit headers — so /sessions is O(limit) reads instead of
O(#sessions). mtime is an exact proxy for updated_at (the file is rewritten
on every save).