Skip to main content

forked_outcome

Function forked_outcome 

Source
pub(super) fn forked_outcome(
    outcome: SessionOutcome,
    forked_from: Option<&str>,
    attempted_sid: &str,
    actual_sid: Option<&str>,
) -> SessionOutcome
Expand description

The outcome of a relocated resume (spec §4.3): the fork reports its own id, which persistent_resume reads as the CLI starting fresh. Carrying the whole conversation into a new id is the resume succeeding.