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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: preserve native video default when clearing source (#8867)
[._.]/ Adam Eivy1aba4b504fc9
diff --git a/client/src/hooks/useVideoGenForm.js b/client/src/hooks/useVideoGenForm.jsindex 18c72cb5fb..968f19d87c 100644--- a/client/src/hooks/useVideoGenForm.js+++ b/client/src/hooks/useVideoGenForm.js@@ -493,7 +493,7 @@ export function useVideoGenForm({const next = defaultResolutionForModel(currentModel);setWidth(next.w);setHeight(next.h);- }, [currentModel]);+ }, [currentModel, sourceImageFile, sourceUploadUrl]);// Remix/deep-link/resume paths set model + sampler fields independently.// Reconcile them once the model is known so a legacy LTX 8n+1 frame countdiff --git a/client/src/hooks/useVideoGenForm.test.jsx b/client/src/hooks/useVideoGenForm.test.jsxindex 6c88bb60e7..9d54098aea 100644--- a/client/src/hooks/useVideoGenForm.test.jsx+++ b/client/src/hooks/useVideoGenForm.test.jsx@@ -524,6 +524,9 @@ describe('useVideoGenForm', () => {expect(result.current.buildGeneratePayload()).toMatchObject({ width: 1344, height: 768 });act(() => pendingImages.at(-1).onload());expect(result.current.buildGeneratePayload()).toMatchObject({ width: 768, height: 1344 });+ act(() => result.current.clearSourceImage());+ expect(result.current.buildGeneratePayload()).toMatchObject({ width: 1344, height: 768 });+ act(() => result.current.pickSourceImage('another-example-source.png'));// Explicit size choice survives both a model switch and its late image load.act(() => {