Skip to content

v0.6.1 — Compact no longer panics on a shrinking history

Latest

Choose a tag to compare

@MelloB1989 MelloB1989 released this 08 Oct 12:34
1fec8f1

Fixed

  • Compact no longer panics on a history that shrank mid-request.
    Dropping the evicted turns sliced history[len(evicted):], which panicked
    with slice bounds out of range when the live history had become shorter
    than the evicted slice while the compact request was in flight (seen with
    concurrent Append on one *Conversation). Both the client-side and the
    server-side compaction now clamp the slice to the live history.