Skip to main content

read_via_stale_index

Function read_via_stale_index 

Source
pub(crate) fn read_via_stale_index(
    fs: &FileStore,
    zone: &str,
    offset: u64,
    limit: u64,
) -> Option<IndexedRead>
Expand description

read_via_index from an index that covers only a prefix of output: lines appended since it was built aren’t returned (total is the index’s count), nor is the last indexed line, whose end the index can’t give. For the read right after extending the index, when an append landed in between — before this, that read fell back to loading the whole transcript (1.3 GB, ~15 s, under the store’s lock) whenever an agent’s spawn was writing to the transcript its pane was opening (docs/reports/REPORT_AGENT_OPEN_STALL_RCA_2026_10_05.md). The lines it leaves out are the newest few, which the pane’s live stream delivers. None under the same conditions as read_via_index, and when nothing requested is within the indexed prefix.