fix(subsync): close remaining cancellation and install races from review

- 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
This commit is contained in:
sudacode committed 2026-11-28 04:02:39 -08:00
1 parent cde9362ee5
commit bd3fe3140d
6 files changed
+80 -24

No files matched your search

+2 -1
View File
@@ -526,7 +526,8 @@ export async function prepareRipCandidatesAndAudio(
});
if (rip) {
return {
audioSpeech: rip.audioSpeech,
// No detected speech means no usable audio reference (keeps the no-audio fallbacks).
audioSpeech: rip.audioSpeech && rip.audioSpeech.spans.length > 0 ? rip.audioSpeech : null,
sampledAudioWindows: null,
preExtractedEmbedded: rip.embeddedSubtitles,
};