Skip to content

readSnapshot

readSnapshot(path): ActivitySnapshot | null

Defined in: src/stall.ts:70

Synchronously derive a snapshot from a session JSONL. Missing/unreadable (e.g. a just-spawned session with no transcript) → null, treated as “no signal”. Reads only the tail of the file (bounded by MAX_TAIL_BYTES) to avoid blocking the event loop on large transcripts.

string

ActivitySnapshot | null