From 9693543f2d5577445eb3f35181ebad2af57c5924 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Fri, 17 Jul 2026 22:01:10 +0200 Subject: [PATCH] fix(ui): fall back to backend source preview on recovery when media is missing The save-side fix only helps sessions saved after it; already-recovered sessions (and any older ones) had processingMedia=null and stayed null. On recovery, when no media is stored, point the preview at /api/source/{jobId} so existing upload sessions get their original-video preview back too. --- dashboard/src/App.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index 7558fb8..fe93d87 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -293,7 +293,10 @@ function App() { if (session.jobId && session.status && session.status !== 'idle') { setJobId(session.jobId); setResults(session.results || null); + // Restore the source preview. Older sessions (or uploads) saved no + // media, so fall back to the backend-served source for this job. if (session.processingMedia) setProcessingMedia(session.processingMedia); + else setProcessingMedia({ type: 'server', payload: `/api/source/${session.jobId}` }); if (session.activeTab) setActiveTab(session.activeTab); // If was processing, resume polling; if complete/error, just show results setStatus(session.status === 'processing' ? 'processing' : session.status);