Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: only a whole-song alignment changes lyric alignment provenance (#10610)

[._.]/ Adam Eivy24b77c6cda54
diff --git a/server/services/musicVideo/lyricAlign.js b/server/services/musicVideo/lyricAlign.js
index 4ba7ef09a0..127b6ccec0 100644
--- a/server/services/musicVideo/lyricAlign.js
+++ b/server/services/musicVideo/lyricAlign.js
@@ -192,7 +192,9 @@ export async function alignProjectLyrics(projectId, options = {}) {
}
const matched = nextCues.reduce((sum, entry) => sum + (entry.words || []).filter((word) => word.conf === 'matched').length, 0);
console.log(`🎤 Aligned lyric words from the ${source}${mixWav ? ' + mix' : ''} via ${transcriber.kind} (${matched} words matched)`);
- const patch = { lyricCues: nextCues, lyricAlignSource: source };
+ // Provenance is project-wide, so only a whole-song pass may change it; one
+ // re-aligned line leaves the other lines' timings as stale as they were.
+ const patch = { lyricCues: nextCues, ...(cueId ? {} : { lyricAlignSource: source }) };
if (mixWav) {
const silentWords = findSilentWords(nextCues, vocalPcm(wav)).length;
patch.lyricAlignSilentWords = silentWords;