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: offer performance shots only on the footage layer (#8977)

[._.]/ Adam Eivydd14f5376996
diff --git a/client/src/components/musicVideo/SceneCard.jsx b/client/src/components/musicVideo/SceneCard.jsx
index 9ea0e1fa35..e0e88c4e49 100644
--- a/client/src/components/musicVideo/SceneCard.jsx
+++ b/client/src/components/musicVideo/SceneCard.jsx
@@ -149,14 +149,19 @@ export default function SceneCard({
<input type="checkbox" checked={loops} disabled={performance} onChange={(e) => applyPatch({ loop: e.target.checked })} />
Loop clip
</label>
- <label htmlFor={shotModeId} className="flex items-center gap-1">Shot</label>
- <select id={shotModeId} value={performance ? 'performance' : 'cutaway'}
- onChange={(e) => applyPatch({ shotMode: e.target.value })}
- className="bg-port-bg border border-port-border rounded px-1 py-1 min-h-[44px] sm:min-h-0"
- title="Cutaway: any video lane animates the frame under the song. Performance: a singer lip-synced to the song itself (needs a source-audio provider).">
- <option value="cutaway">Cutaway</option>
- <option value="performance">Performance (lip-sync)</option>
- </select>
+ {/* A performance is sung footage — only the footage layer offers it. */}
+ {layer === 'footage' && (
+ <>
+ <label htmlFor={shotModeId} className="flex items-center gap-1">Shot</label>
+ <select id={shotModeId} value={performance ? 'performance' : 'cutaway'}
+ onChange={(e) => applyPatch({ shotMode: e.target.value })}
+ className="bg-port-bg border border-port-border rounded px-1 py-1 min-h-[44px] sm:min-h-0"
+ title="Cutaway: any video lane animates the frame under the song. Performance: a singer lip-synced to the song itself (needs a source-audio provider).">
+ <option value="cutaway">Cutaway</option>
+ <option value="performance">Performance (lip-sync)</option>
+ </select>
+ </>
+ )}
</div>
<div className="flex flex-wrap gap-2 items-center text-xs">
<label htmlFor={fieldId('layer')}>Layer</label>
diff --git a/server/lib/musicVideoShotTiming.js b/server/lib/musicVideoShotTiming.js
index 438dd31dec..3aca1c88ba 100644
--- a/server/lib/musicVideoShotTiming.js
+++ b/server/lib/musicVideoShotTiming.js
@@ -32,8 +32,13 @@ import { GROK_VIDEO_DURATIONS, nearestGrokDuration } from './grokVideoClip.js';
export const MUSIC_VIDEO_SHOT_MODES = Object.freeze(['cutaway', 'performance']);
-/** A scene with no `shotMode` (every pre-#8977 record) is a cutaway. */
-export const isPerformanceScene = (scene) => scene?.shotMode === 'performance';
+/**
+ * A scene with no `shotMode` (every pre-#8977 record) is a cutaway. A
+ * performance is sung footage, so it only applies on the footage layer
+ * (#8985): a still or title-card scene is never lip-synced.
+ */
+export const isPerformanceScene = (scene) => scene?.shotMode === 'performance'
+ && (scene.visualLayer == null || scene.visualLayer === 'footage');
/**
* The shot instruction of a performance scene's SELECTED video take, or null —
diff --git a/server/services/musicVideo/performanceShot.test.js b/server/services/musicVideo/performanceShot.test.js
index 4490b222ab..c5b342e4ce 100644
--- a/server/services/musicVideo/performanceShot.test.js
+++ b/server/services/musicVideo/performanceShot.test.js
@@ -225,6 +225,11 @@ describe.skipIf(!ffmpeg)('music-video performance shot through the fal lip-sync
await expect(preparePerformanceShot({
musicVideo: { projectId: 'mv-1', sceneId: 'mvs-1' }, backend: 'grok', sourceImagePath: '/x/frame.png',
})).resolves.toBeNull();
+ // A performance is sung footage: a still/card-layer scene (#8985) is never lip-synced.
+ getProject.mockResolvedValue(project({ visualLayer: 'still' }));
+ await expect(preparePerformanceShot({
+ musicVideo: { projectId: 'mv-1', sceneId: 'mvs-1' }, backend: 'grok', sourceImagePath: '/x/frame.png',
+ })).resolves.toBeNull();
});
it('never submits a paid request when cancelled while its inputs are still being read', async () => {