mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-17 01:07:56 +00:00
insertWorkflow configured a throwaway LGraph that adopted the file's serialized graph id, registering scratch nodes into the root-scoped stores. Inserting a workflow whose id matched the open one bound scratch widgets first-wins to the live WidgetState objects and reverted unsaved widget edits to file values; differing ids leaked the scratch bucket for the session. Give the scratch graph a synthetic UUID and clear it in a finally block so all store buckets are disposed even if copying throws.