Compare commits

..

1 commit
v2.1.2 ... main

Author SHA1 Message Date
9786988690 Fix ComfyUI prompt queueing: always generate server-side UUID for prompt_id
ComfyUI's /prompt endpoint now validates prompt_id as a UUID. This app's
queueComfyPrompt() trusted a client-supplied identifiers.promptId (used as
a correlation id for progress polling), which is not guaranteed to be a
UUID, causing every queued workflow to fail with "prompt_id must be a
valid UUID" and no way to retry successfully. The correlation id used for
progress streaming (executionPromptId) is independent of what's actually
sent to ComfyUI in the request body, so this is safe to always regenerate.

Found and verified 2026-07-30 while getting 3DGenStudio's bundled mesh-gen
workflows working against a fresh ComfyUI instance.
2026-07-30 08:22:54 +03:00

View file

@ -1481,7 +1481,7 @@ async function sleep(ms) {
async function queueComfyPrompt(baseUrl, workflowJson, identifiers = {}) {
const clientId = String(identifiers?.clientId || '').trim() || randomUUID();
const promptId = String(identifiers?.promptId || '').trim() || randomUUID();
const promptId = randomUUID(); // patched 2026-07-30: ComfyUI now enforces UUID prompt_id, client-supplied ids can be non-UUID and get rejected
const response = await fetch(`${baseUrl}/prompt`, {
method: 'POST',
headers: {