Duplicate flow: references to its own messages under its own name follow the copy

This commit is contained in:
2026-10-16 09:22:57 +02:00
parent c37a191c82
commit 07ecbaab3a
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -699,6 +699,8 @@ class FlowStore:
"origin": None,
}
)
# Its own messages named with its own name are the copy's now.
self._retarget(copy, f"{name}.", f"{new_name}.")
path = self._draft_file(new_name)
path.parent.mkdir(parents=True)
path.write_text(copy.model_dump_json(indent=2) + "\n")