Duplicate flow: references to its own messages under its own name follow the copy
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user