Skip to main content

Module session_gc

Module session_gc 

Source
Expand description

rpi session gc — offline compaction of retired stream frames.

Fork issue DavidHinton-xcpc/pi-rust#14 §4 PR-D (write-side half). A long session’s JSONL is dominated by assistant_frame appends that a later clear_run of the same run already retired; the reader no longer indexes them (#252), but the bytes stay on disk.

This command strips only those frames’ payloads; their identity rows stay on disk so ID reservations and later appends stay consistent. Runs without a clear_run keep every frame, because frame_progress::salvage_run_frames replays them after a crash. Sequences are never renumbered and the header is kept, so later appends and older binaries both stay consistent.

--dry-run reports without writing.

Functions§

run
Dispatch rpi session <subcommand>.