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: clear stale chunkPrompts when a video retry drops back to 1 chunk
[._.]/ Adam Eivyd4e2b484063b
diff --git a/server/routes/mediaJobs.js b/server/routes/mediaJobs.jsindex 12499fd1be..85796d9caf 100644--- a/server/routes/mediaJobs.js+++ b/server/routes/mediaJobs.js@@ -285,6 +285,7 @@ router.post('/:id/retry', asyncHandler(async (req, res) => {for (const key of ['seed', 'steps', 'guidanceScale', 'imageStrength']) {if (rawOverrides[key] === null) delete params[key];}+ if (rawOverrides.chunks === 1) delete params.chunkPrompts;// Grok video jobs use `mode` as the cloud-dispatch discriminator, not the// local semantic mode validated by prepareParams.if (job.kind === 'video' && params.mode !== 'grok') await validateVideoRetryParams(params);diff --git a/server/services/videoGen/prepareParams.js b/server/services/videoGen/prepareParams.jsindex 46f997102f..2fa69ce14f 100644--- a/server/services/videoGen/prepareParams.js+++ b/server/services/videoGen/prepareParams.js@@ -59,6 +59,9 @@ import {import { videoModeContractError, videoChainUnsupportedError } from './modeContract.js';import { resolveByovRuntimeLoraCapable, videoLoraUnsupportedError } from './runtimes.js';+// Retries reuse persisted worker parameters instead of passing through the+// multipart preparation path. Keep the model/mode gates here so a model edit+// cannot delete the original history row before the replacement is renderable.export async function validateVideoRetryParams(params = {}) {const modelId = params.modelId || defaultVideoModelId();const model = listVideoModels().find((entry) => entry.id === modelId);