Cleanup now deletes leftover per-directory sync files so they stop piling up next to transcripts.
What's wrong with this entry?
Retention cleanup now recognises and deletes the per-directory sync-state file written next to a transcript as <name>.dir-sync.json, along with its temporary variants, so these no longer accumulate.
- The check made before recursively removing a session's companion directory was tightened. It previously only rejected empty,
.and..names. - It now also rejects names containing path separators, reserved or device-like names, names ending in a dot or space, and names ending in
.jsonl.
.dir-sync.json
Strings lifted out of the shipped bundle, so the claim above can be checked against them.