Skip to main content

export_session_spliced

Function export_session_spliced 

Source
pub fn export_session_spliced(
    sidecar: &str,
    format: SessionFormat,
    session_id: Option<&str>,
) -> Result<String>
Expand description

Export a (possibly reduced) live session in format, replaying the imported prefix verbatim when format is the session’s own origin (Session::to_jsonl_spliced, SPEC.md A12).

Mirrors export_session exactly, but through the splice path: always reconstructs from sidecar (the reduced view / ReductionLog are not inputs), and applies the identical grammar-aware leak guard.