- treat a cancelled run as a changed session at every commit point (writes,
delay resets, track loads, picker), so nothing lands after a media switch
- fail the secondary track load when the baseline track list cannot be read
- keep the cross-filesystem install atomic by staging next to the target
- register old temp dirs mpv still plays from so they are pruned later
- no detected speech in the combined pass means no audio reference
- start the align worker synchronously so a call cannot post to a stale worker
- kill a tool's whole POSIX process group on cancel (orphaned children held the
pipes open, so the run never finished); kill running groups on exit
- refuse an in-place rewrite when the subtitle changed on disk mid-sync
- pick only a freshly added track for the secondary slot, and reset its delay
only after selecting it
- pass cancellation to the video-reference alass and ffsubsync runs, and never
open a picker for media the user already left
- treat a failed media-path baseline read as unknown instead of null
- align worker: honor aborts during startup and finish queued calls on the
main thread when the worker fails to start
- temp dirs: keep failed removals registered, never sweep a dir mpv still
plays from, and clean up when writing a cleaned reference fails
- an empty cached audio result means no usable audio, as on a fresh decode
- compare external track paths case-sensitively on POSIX
- decode ffmpeg stderr as a stream; coverage lane for subtitle tests
- make the cancellation test wait for the tool to start
Alignment and candidate scoring take up to ~1s per call on long media and an
auto run makes several, which stalled mpv IPC and the overlay on the main
process. They now run in a reusable worker (src/subsync/align-worker.ts) that
idles out after 30s and falls back to the main thread if it cannot start.
Aborting a run terminates the worker, so cancellation no longer waits for an
in-flight alignment.