Skip to main content

read_event_tail

Function read_event_tail 

Source
pub fn read_event_tail(
    workspace: &Path,
    session_id: &str,
    max_bytes: usize,
) -> Result<Option<EventTail>, SessionStoreError>
Expand description

Read at most max_bytes from a session without creating files, taking a writer handle, changing metadata, or loading history into agent context. Missing logs return None for compatibility with legacy archives. The workspace must be an absolute, resolved root; symlink paths are rejected. Platforms without handle-bound reads return an Unsupported I/O error.