Skip to main content

read_session_output

Function read_session_output 

Source
pub fn read_session_output(
    mstore: &Arc<Store>,
    filestore: &Arc<FileStore>,
    block_id: &str,
) -> Result<(Vec<u8>, u64), String>
Expand description

Read the raw session output bytes, whether from FileStore (live) or archive. Returns (bytes, line_count).

Live output is read from where the pane reads it (TranscriptSource): the agent’s own zone in the global transcript store when the block is a defined agent’s and the zone has content, else the block’s own copy.