From 4b6c2e0042feaeeb07a69020dfa97324e0df37ff Mon Sep 17 00:00:00 2001 From: shrimbly Date: Fri, 27 Mar 2026 21:23:04 +1300 Subject: [PATCH] fix: embed directoryPath in workflow JSON for portable hydration The directoryPath field was defined in WorkflowFile and checked during load, but never written during save. Workflows opened from a different machine or via file picker had no way to find their externalized media files, so all ref-based nodes appeared empty. Co-Authored-By: Claude Opus 4.6 --- src/store/workflowStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/workflowStore.ts b/src/store/workflowStore.ts index 04f2562f..c505f395 100644 --- a/src/store/workflowStore.ts +++ b/src/store/workflowStore.ts @@ -1956,6 +1956,7 @@ const workflowStoreImpl: StateCreator = (set, get) => ({ version: 1, id: workflowId, name: workflowName, + directoryPath: saveDirectoryPath, nodes: currentNodes, edges, edgeStyle,