Skip to main content

invert_one_messages

Function invert_one_messages 

Source
pub fn invert_one_messages(
    reduced: &[ChatMessage],
    log: &ReductionLog,
    id: &str,
    sidecar_messages: &[ChatMessage],
) -> 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.