From c869ecee2a3aa385b6b71be8643094665f4cbfcf Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 27 Jun 2026 08:15:19 +0200 Subject: [PATCH] fix: image gate Run-from-here fires Comfy.QueuePrompt command too Same latent bug as the text gate: a bare app.queuePrompt(0,1) enqueues but doesn't kick off execution in the 1.47 frontend. Execute the Comfy.QueuePrompt command (the Run button's path), with app.queuePrompt as a legacy fallback. Co-Authored-By: Claude Opus 4.8 --- web/image_gate.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/image_gate.js b/web/image_gate.js index 6e7f271..7de1f25 100644 --- a/web/image_gate.js +++ b/web/image_gate.js @@ -215,6 +215,16 @@ function showResolved(node, choiceLabel) { } async function queueFromHere(node) { + // Fire the same command the Run button / Ctrl+Enter use, so the prompt + // actually EXECUTES. A bare app.queuePrompt(...) enqueues but skips the + // command's run setup, so the 1.47 frontend doesn't kick off the run (you'd + // have to press Run yourself). Fall back to app.queuePrompt on older + // frontends without the command registry. + const cmd = app.extensionManager?.command; + if (cmd?.execute) { + try { await cmd.execute("Comfy.QueuePrompt"); return; } + catch (e) { /* fall through to the legacy path */ } + } try { await app.queuePrompt(0, 1); } catch (e) {