pub async fn handle_session_list( format: String, ascending: bool, working_dir: Option<PathBuf>, limit: Option<usize>, ) -> Result<()>