pub fn to_envelope_seq(
seq: u64,
thread_id: ThreadId,
_session_id: SessionId,
msg: EventMsg,
) -> RuntimeEventEnvelopeExpand 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.