pub async fn list_session_metadata(
cwd: &str,
) -> Result<Vec<JsonlSessionMetadata>, BuildError>Expand description
List the JSONL session metadata under the default session dir, newest
first. Shared by startup restore and the TUI /session hot-switch.
list_session_metadata intentionally stays unscoped: it resolves sessions
to open (including --continue/-c), where filtering by cwd would make
a session that the caller named by id unopenable. Only pickers apply a scope.