Skip to main content

Module live

Module live 

Source
Expand description

The live file of a streaming reply (SPEC_HISTORY_COMPACT_FORM_ONLY_2026_11_23.md section 4).

While a reply streams, its fragments (stream_event lines) go to output.live, a second file in the agent’s zone, and to the pane’s feed as events with no position, as the pane takes them today. output never receives a fragment unless it cannot be proven redundant (see [compact::LiveReply]). When a message has stopped and every block of it is in a complete line, its fragments leave output.live. At a turn boundary, what is left of a cut-off reply becomes one interrupted assistant line in output, before the boundary line.

A kill leaves output.live behind. The first write to a block after a start looks at it: the leftovers are reassembled against the last complete lines of output, appended, and the file is emptied.

Readers of output see no fragments. A pane opened mid-reply gets the rest of the reply from the feed and the whole of it from output once the block completes.

Constants§

LIVE_FILE
The file in an agent’s zone that holds the fragments of the reply in progress.