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: rename leftover cleanupTempUpload to cleanupAllStaged after rebase
Adam Eivyaf2cf55eaad7
diff --git a/server/routes/videoGen.js b/server/routes/videoGen.jsindex f388ce584d..25f6132320 100644--- a/server/routes/videoGen.js+++ b/server/routes/videoGen.js@@ -255,7 +255,11 @@ router.post('/', frameImageUpload, asyncHandler(async (req, res) => {const history = await loadHistory();const videoEntry = history.find((h) => h.id === body.extendFromVideoId);if (!videoEntry) {- await cleanupTempUpload();+ // cleanupAllStaged covers durable copies that may have been written+ // before this validation point — extend mode and image uploads are+ // mutually exclusive in the UI but the route doesn't enforce that,+ // so be defensive.+ await cleanupAllStaged();throw new ServerError(`extendFromVideoId not found in history: ${body.extendFromVideoId}`,{ status: 404, code: 'EXTEND_SOURCE_NOT_FOUND' },@@ -263,7 +267,7 @@ router.post('/', frameImageUpload, asyncHandler(async (req, res) => {}const candidate = safeUnder(PATHS.videos, videoEntry.filename);if (!candidate || !existsSync(candidate)) {- await cleanupTempUpload();+ await cleanupAllStaged();throw new ServerError(`extendFromVideoId resolved to a missing file: ${videoEntry.filename}`,{ status: 404, code: 'EXTEND_SOURCE_FILE_MISSING' },