From 2982691f1033fc8011b314fe79d63c185b53ff1e Mon Sep 17 00:00:00 2001 From: matei jordache Date: Wed, 1 Apr 2026 20:41:36 -0700 Subject: [PATCH] autorun packed workflows on load --- frontend/src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index dc3e36f..87ffc86 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2126,6 +2126,8 @@ function Flow() { try { const { workflow, restoredPaths } = await unpackWorkflow(data); applyWorkflowData(workflow, { preservedPaths: restoredPaths }); + // Auto-run after packed workflow loads so all previews populate + requestAnimationFrame(() => requestAnimationFrame(() => scheduleAutoRun())); } catch { // Unpack failed (e.g. stale session) — load the workflow without file restoration const { packedFiles: _, packed: __, ...cleanWorkflow } = data; @@ -2136,7 +2138,7 @@ function Flow() { } else { applyWorkflowData(data); } - }, [applyWorkflowData]); + }, [applyWorkflowData, scheduleAutoRun]); const loadDefaultWorkflow = useCallback(async () => { if (defaultWorkflowLoadAttemptedRef.current) return;