pub fn gc_legacy(workspace: &Path) -> Result<u64, SessionStoreError>Expand description
Remove the legacy history/ and logs/ directories after they have been
imported into the unified store by crate::migrate_legacy.
Returns the number of bytes freed. The legacy checkpoints/ directory is
intentionally left in place until /revert is rewired to the unified
store; callers should confirm revert behavior before deleting it manually.