From dd55ff740e90b4b557620d96bd522741c10f0876 Mon Sep 17 00:00:00 2001 From: Robert Wojciechowski Date: Thu, 26 Mar 2026 22:00:53 +0000 Subject: [PATCH] fix: forward all queuePrompt args through interceptor The interceptor only captured (number, prompt) and dropped the third options argument. This caused partialExecutionTargets to be lost, making ComfyUI execute all output nodes instead of just the selected one when using Execute Selected Output. Fixes #76 --- web/executionUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/executionUtils.js b/web/executionUtils.js index 703ee4a..ae601d4 100644 --- a/web/executionUtils.js +++ b/web/executionUtils.js @@ -4,7 +4,7 @@ import { TIMEOUTS, NODE_CLASSES, generateUUID } from './constants.js'; import { checkAllWorkerStatuses, getWorkerUrl } from './workerLifecycle.js'; export function setupInterceptor(extension) { - api.queuePrompt = async (number, prompt) => { + api.queuePrompt = async (number, prompt, ...rest) => { if (extension.isEnabled) { const hasCollector = findNodesByClass(prompt.output, NODE_CLASSES.DISTRIBUTED_COLLECTOR).length > 0; const hasDistUpscale = findNodesByClass(prompt.output, NODE_CLASSES.UPSCALE_DISTRIBUTED).length > 0; @@ -18,7 +18,7 @@ export function setupInterceptor(extension) { return result; } } - return extension.originalQueuePrompt(number, prompt); + return extension.originalQueuePrompt(number, prompt, ...rest); }; }