Expand description
Thread events — RuntimeEventEnvelope mapping + EventMsg fan-out
(issue #5261 / #3313).
The TUI’s runtime_threads.rs emits RuntimeEventEnvelope for the
app-server SSE stream and Event for the transcript. This module owns
that mapping in core so the headless exec and the TUI render the
same envelope for the same turn — byte-identical on the wire.
Functions§
- to_
envelope_ seq - Narrow the
EventMsgto the envelope shape the app-server expects. The realRuntimeEventEnvelopeaddsseq+timestamp; this helper stamps them consistently so headless and TUI produce identical sequences.