Skip to main content

to_envelope_seq

Function to_envelope_seq 

Source
pub fn to_envelope_seq(
    seq: u64,
    thread_id: ThreadId,
    _session_id: SessionId,
    msg: EventMsg,
) -> RuntimeEventEnvelope
Expand description

Narrow the EventMsg to the envelope shape the app-server expects. The real RuntimeEventEnvelope adds seq + timestamp; this helper stamps them consistently so headless and TUI produce identical sequences.