Browse Source

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 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
4b6c2e0042
  1. 1
      src/store/workflowStore.ts

1
src/store/workflowStore.ts

@ -1956,6 +1956,7 @@ const workflowStoreImpl: StateCreator<WorkflowStore> = (set, get) => ({
version: 1, version: 1,
id: workflowId, id: workflowId,
name: workflowName, name: workflowName,
directoryPath: saveDirectoryPath,
nodes: currentNodes, nodes: currentNodes,
edges, edges,
edgeStyle, edgeStyle,

Loading…
Cancel
Save