fn read_session_messages( config_dir: &Path, session_id: &str, directory: Option<&str>, fold_sidecars: bool, ) -> SessionHistory