Skip to main content

Module ring

Module ring 

Source
Expand description

What a viewing computer holds of a remote agent’s conversation (docs/specs/SPEC_REMOTE_PANES_WATCH_AND_DRIVE_AN_AGENT_ON_ANOTHER_COMPUTER_2026_11_20.md §4, D13): the host’s lines as its feed gave them, by their line number in the host’s transcript, in memory only and at most RING_BYTES. Past that the oldest lines go; scrolling up reads them again from the host (older).

Also the feed’s own framing (SseParser): the host’s server-sent events, read off the stream.

Structs§

Ring
One remote agent’s lines.
SseEvent
One server-sent event.
SseParser
Reads server-sent events off a byte stream, chunk by chunk.

Enums§

Gap
Why an append could not follow on from what the ring holds: the feed must start over from a snapshot.

Constants§

MAX_EVENT_BYTES
The most an event may be before the stream is given up as broken (the host caps a frame well below it).
RING_BYTES
The most a ring holds, in bytes of lines (D13).