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: keep composed manifests unchanged when no code video is stored (#9076)

[._.]/ Adam Eivy4c5c7e04071a
diff --git a/server/services/musicVideo/composition.js b/server/services/musicVideo/composition.js
index 36e3ba2d02..113bced431 100644
--- a/server/services/musicVideo/composition.js
+++ b/server/services/musicVideo/composition.js
@@ -83,6 +83,7 @@ export function normalizeComposition(input) {
});
}
const style = input.style && typeof input.style === 'object' ? input.style : {};
+ const codeVideo = normalizeCodeVideo(input.codeVideo);
return {
version: COMPOSITION_VERSION,
mode: pick(input.mode, COMPOSITION_MODES, 'concat'),
@@ -92,7 +93,9 @@ export function normalizeComposition(input) {
font: pick(style.font, TYPOGRAPHY_FONTS, 'sans'),
},
posterSec: toTime(input.posterSec),
- codeVideo: normalizeCodeVideo(input.codeVideo),
+ // Absent unless a code video was actually stored, so a composed manifest
+ // stays the shape peers and clones already compare.
+ ...(codeVideo ? { codeVideo } : {}),
};
}