Skip to main content

Module events

Module events 

Source
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 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.