CoAgent8 - Source API
    Preparing search index...

    Module sessions/history/writer

    Append-only session history writer and streaming delta coalescer.

    • Appends coalesced assistant deltas to .jsonl log without rewriting snapshots per chunk.
    • Under ${handle}.lock, checks for torn tails from unexpected crashes and truncates in-place to the last valid byte offset, adjusting capacity accounting.
    • Materializes .json snapshot atomically upon message completion or turn_finished.
    • Holds back incomplete credentials using computeSafeCommitPoint from security.
    createHistoryWriter