mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-23 14:16:00 +00:00
Extend ensureWorkflowId to regenerate the top-level workflow id when it is present but not a canonical UUID. Previously the guard only replaced missing ids, so slug ids carried in from workflow templates (e.g. 'video-point-prompt-example' from an older SAM3 example) would survive round-trip save/publish and later be rejected by the cloud share loader's zod validation. Adds an isValidUuid helper and exhaustive unit coverage for valid UUIDs (lowercase/uppercase/mixed-case, any version/variant, fresh generateUUID output), for rejection of slugs, numbers, malformed UUID-like strings, and for the new createTemporary migration branch.