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
fix: preserve omitted frame controls for non-Wan jobs (#7047)
[._.]/ Adam Eivy8a24de0b1497
diff --git a/server/services/videoGen/prepareParams.js b/server/services/videoGen/prepareParams.jsindex fc042c24a8..e2b1200011 100644--- a/server/services/videoGen/prepareParams.js+++ b/server/services/videoGen/prepareParams.js@@ -638,8 +638,12 @@ async function resolvePreparedParams({throw controlError;}}- // Persist the same resolved count the worker will render and validate.- let effectiveNumFrames = body.numFrames ?? effectiveModel?.defaultFrames ?? DEFAULT_NUM_FRAMES;+ // Pin Wan's validated count for the worker while preserving other runtimes'+ // existing behavior of leaving omitted controls unset in persisted params.+ const isWan = effectiveModel?.runtime === 'wan22' || effectiveModel?.runtime === 'wan22_cuda';+ let effectiveNumFrames = isWan+ ? body.numFrames ?? effectiveModel.defaultFrames ?? DEFAULT_NUM_FRAMES+ : body.numFrames;const frameCountError = wan22FrameCountError(effectiveModel, effectiveNumFrames);if (frameCountError) {await cleanupStaged();diff --git a/server/services/videoGen/prepareParams.test.js b/server/services/videoGen/prepareParams.test.jsindex a3cb3fdf20..8ab3788f3f 100644--- a/server/services/videoGen/prepareParams.test.js+++ b/server/services/videoGen/prepareParams.test.js@@ -511,6 +511,13 @@ describe.each(['wan22', 'wan22_cuda'])('Wan frame admission — %s', (runtime) =});});+it('leaves omitted frame counts unset for other runtimes', async () => {+ listVideoModels.mockReturnValue([{+ id: 'ltx_test', name: 'Test LTX', runtime: 'ltx2', defaultFrames: 81,+ }]);+ await expect(prepare({ modelId: 'ltx_test' })).resolves.toMatchObject({ effectiveNumFrames: undefined });+});+describe('validateVideoRetryParams', () => {it('keeps an explicit null model sentinel unknown instead of selecting the default', async () => {await expect(validateVideoRetryParams({ modelId: null })).rejects.toMatchObject({