fix(subsync): clean up temp dirs left by embedded and remote track syncs

Syncing an embedded or remote target kept its whole mkdtemp dir (original
extraction plus retimed copy) for the life of the machine. The original is now
removed right away; the dir holding the retimed file mpv loaded is retained
only while mpv lists it, pruned at the next run, removed on exit, and dirs a
crashed session left more than a day ago are swept once per process.
This commit is contained in:
sudacode committed 2026-11-28 03:34:55 -08:00
1 parent 732a61ee4b
commit 5b39e850f6
7 files changed
+150 -32

No files matched your search

+5 -1
View File
@@ -34,7 +34,11 @@ export const testLanes: Record<string, TestLane> = {
subtitle: {
roots: ['src/subsync'],
include: ['.test.ts'],
extraFiles: ['src/core/services/subsync.test.ts', 'src/renderer/modals/subsync.test.ts'],
extraFiles: [
'src/core/services/subsync.test.ts',
'src/core/services/subsync-files.test.ts',
'src/renderer/modals/subsync.test.ts',
],
},
scripts: {
roots: ['scripts'],