Skip to main content

invert_one

Function invert_one 

Source
pub fn invert_one(
    reduced: &[ChatMessage],
    log: &ReductionLog,
    id: &str,
    sidecar_session: &Session,
) -> Result<(Vec<ChatMessage>, ReductionLog)>
Expand description

Rehydrate a single reduction by id (C4 /expand <id>; also used for per-range TurnsCleared expansion). Returns the updated view and a log with that record removed (an expanded reduction is no longer “applied”).

Other placeholders in reduced are untouched — their bytes remain identical.