Skip to main content

resolve_transcript_source

Function resolve_transcript_source 

Source
pub fn resolve_transcript_source(
    inline_records: Option<Vec<Value>>,
    prior_offset: i64,
    file_result: (Vec<Value>, i64, i64),
) -> (Vec<Value>, i64, i64)
Expand description

Choose the transcript source for a stream event. Inline records (from a plugin-based agent like OpenCode) win over the file-read result whenever the hook event carries them — INCLUDING an empty vec, so an event with no new records (e.g. OpenCode stop) preserves the prior record-count offset instead of resetting it to the file-path’s 0.