mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
Backup & Restore only listed database snapshots, while other backups kept growing unseen under ~/.cc-switch: Codex session history migration copies can reach several GB, plus skill uninstall backups, config first-write backups, Hermes/OpenClaw config backups and files left by older versions. A collapsible "Other Backups" section below the database list now shows each location with its path, size and item count, and lets the user reveal it in the file manager or delete a whole category after a confirmation that explains what is lost (e.g. deleting the Codex unify migration backups removes the "restore backup" option when turning that switch off). Database snapshots are only summarized there and stay managed per file in the list above. The frontend only passes category ids; paths are computed by the backend from each writer's own location, and deletes never follow symlinks. Codex migration backups are deleted under the migration lock and skill backups under the skills state lock, so a running migration or uninstall cannot lose its directory mid-write.