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: defer synced video backend to install default (#3245)

[._.]/ Adam Eivy7201891a3bc4
diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsx
index 0611b0a99c..de9f5e5ac6 100644
--- a/client/src/pages/MusicVideo.jsx
+++ b/client/src/pages/MusicVideo.jsx
@@ -485,7 +485,10 @@ export default function MusicVideo() {
const missingVideoCount = sceneCount - renderableSceneCount;
const finalVideo = useVideoFileSrc(selected?.renderHistoryId, { enabled: !!selected?.renderHistoryId });
const savedVideoSettings = {
- backend: selected?.videoSettings?.backend || 'local',
+ // Empty means this peer resolves its own configured Video Gen default.
+ // Synced projects intentionally arrive without another install's backend
+ // pin, so do not turn that absence into an explicit local override.
+ backend: selected?.videoSettings?.backend || '',
// Empty is an intentional "follow the local Video Gen default" choice,
// distinct from pinning the model that happens to be default today.
modelId: selected?.videoSettings?.modelId || '',
@@ -771,10 +774,15 @@ export default function MusicVideo() {
videoLane.startScene(scene.sceneId);
generateVideo({
prompt,
- backend: savedVideoSettings.backend,
+ ...(savedVideoSettings.backend ? { backend: savedVideoSettings.backend } : {}),
...(savedVideoSettings.backend === 'grok'
? { grokDuration: savedVideoSettings.grokDuration }
- : { modelId: savedVideoSettings.modelId || undefined, disableAudio: true }),
+ : savedVideoSettings.backend === 'local'
+ ? { modelId: savedVideoSettings.modelId || undefined, disableAudio: true }
+ // A named model is local-only machinery at the server boundary and
+ // would force the resolver off a Grok install default. Keep the
+ // shared pin saved, but omit it until this peer chooses Local.
+ : { grokDuration: savedVideoSettings.grokDuration, disableAudio: true }),
mode: audioReactive ? 'a2v' : 'image',
sourceImageFile: scene.referenceImageId,
...(audioReactive ? {
@@ -1013,6 +1021,7 @@ export default function MusicVideo() {
title="Saved renderer for this project's scene videos"
className="bg-port-bg border border-port-border rounded px-1.5 py-1.5 text-sm disabled:opacity-50"
>
+ <option value="">Install default</option>
<option value="local">Local video</option>
<option value="grok">Grok video</option>
</select>
diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsx
index 79798ce474..014b11bd84 100644
--- a/client/src/pages/MusicVideo.test.jsx
+++ b/client/src/pages/MusicVideo.test.jsx
@@ -10,6 +10,7 @@ import toast from '../components/ui/Toast';
const PROJECT_WITH_CLIP = {
id: 'mv-1', name: 'Neon Run', mode: 'director', status: 'ready',
trackId: 't1', uploadedAudioFilename: null, audioAnalysis: null, renderHistoryId: null,
+ videoSettings: { backend: 'local' },
scenes: [{ sceneId: 's1', order: 0, prompt: 'a', referenceImageId: 'img1', videoHistoryId: 'h1' }],
};
const PROJECT_NO_CLIP = {
@@ -37,7 +38,11 @@ vi.mock('../services/apiMusicVideo.js', () => ({
listMusicVideoProjects: vi.fn(async () => []),
createMusicVideoProject: vi.fn(),
cloneMusicVideoProject: vi.fn(),
- updateMusicVideoProject: vi.fn(async (id, patch) => ({ id, ...patch })),
+ updateMusicVideoProject: vi.fn(async (id, patch) => ({
+ id,
+ ...patch,
+ ...(patch.videoSettings ? { videoSettings: { backend: 'local', ...patch.videoSettings } } : {}),
+ })),
deleteMusicVideoProject: vi.fn(),
analyzeMusicVideoProject: vi.fn(),
planMusicVideoProject: vi.fn(),
@@ -210,6 +215,20 @@ describe('MusicVideo render control (#1760)', () => {
});
describe('MusicVideo project video renderer', () => {
+ it('lets the server resolve this install default when a synced project has no backend pin', async () => {
+ generateVideo.mockResolvedValue({ jobId: 'video-job-default' });
+ await openProject({
+ ...PROJECT_NO_CLIP,
+ videoSettings: { modelId: 'ltx23_distilled_q4' },
+ });
+
+ expect(await screen.findByLabelText('Scene video renderer')).toHaveProperty('value', '');
+ fireEvent.click(screen.getByRole('button', { name: /^Generate video$/ }));
+ await waitFor(() => expect(generateVideo).toHaveBeenCalled());
+ expect(generateVideo.mock.calls.at(-1)[0]).not.toHaveProperty('backend');
+ expect(generateVideo.mock.calls.at(-1)[0]).not.toHaveProperty('modelId');
+ });
+
it('persists the local model and uses it for scene generation', async () => {
generateVideo.mockResolvedValue({ jobId: 'video-job-1' });
await openProject(PROJECT_NO_CLIP);