Expand description
The last lines of an agent’s transcript, for the readers that want only a few
(Agents transcript, the previews in Agents conversations).
Both used to read the block’s whole output file (hundreds of MB for a long
session) under the store’s one connection, on a tokio worker, to return at
most 500 lines. On a busy machine that parked workers and the connection long
enough for every other call to queue behind them: a GetControllerStatus
that does no work of its own took 38 s (narko, 2026-10-29, CPU ~96%). This
reads a bounded tail instead, and off_worker keeps what is left off the
async workers.
Structs§
- Tail
Lines - What a transcript read found.
Functions§
- off_
worker - Run blocking work (store reads) off the async workers. A panic in
fgivesT::default(), as no result at all would for a best-effort reader. - tail_
lines - The last
requestedlines ofblock_id’s transcript: a bounded tail read of the live file, else (an archived session) the whole-session read. Blocking. - tail_
lines_ for_ readers tail_linesfor a reader that is not the agent itself (another agent, a device): a value srv holds secret is replaced bywithhold::MARKin the lines it gets, whenever the line was stored.