From c33d5b20b2a7ddf9f26f197312157c65bd075790 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Mar 2026 21:56:34 +0000 Subject: [PATCH] Pre-configure ComfyUI workflow node mappings via env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add COMFYUI_WORKFLOW_NODES env var to Open WebUI in both setup scripts. This pre-fills the node ID mappings (Prompt=6, Model=4, Width/Height=5, Steps/Seed=3) so users only need to upload the workflow JSON file — the node mapping fields are already populated. Previously users had to both upload the workflow AND manually fill in 6 node ID fields. Now it's just upload + save. https://claude.ai/code/session_01PtYTPherSJaxDEVPgF6Nxu --- laptop_full_setup.sh | 1 + local-ai-setup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/laptop_full_setup.sh b/laptop_full_setup.sh index d06174f..e418492 100755 --- a/laptop_full_setup.sh +++ b/laptop_full_setup.sh @@ -1065,6 +1065,7 @@ $( $SVC_COMFYUI && cat <<'IMGENV' - ENABLE_IMAGE_GENERATION=true - IMAGE_GENERATION_ENGINE=comfyui - COMFYUI_BASE_URL=http://comfyui:8188 + - COMFYUI_WORKFLOW_NODES=[{"type":"prompt","key":"text","node_ids":["6"]},{"type":"model","key":"ckpt_name","node_ids":["4"]},{"type":"width","key":"width","node_ids":["5"]},{"type":"height","key":"height","node_ids":["5"]},{"type":"steps","key":"steps","node_ids":["3"]},{"type":"seed","key":"seed","node_ids":["3"]}] IMGENV ) depends_on: diff --git a/local-ai-setup.sh b/local-ai-setup.sh index 5e6fc84..62600d6 100755 --- a/local-ai-setup.sh +++ b/local-ai-setup.sh @@ -616,6 +616,7 @@ services: - ENABLE_IMAGE_GENERATION=true - IMAGE_GENERATION_ENGINE=comfyui - COMFYUI_BASE_URL=http://comfyui:8188 + - COMFYUI_WORKFLOW_NODES=[{"type":"prompt","key":"text","node_ids":["6"]},{"type":"model","key":"ckpt_name","node_ids":["4"]},{"type":"width","key":"width","node_ids":["5"]},{"type":"height","key":"height","node_ids":["5"]},{"type":"steps","key":"steps","node_ids":["3"]},{"type":"seed","key":"seed","node_ids":["3"]}] depends_on: ollama: {condition: service_healthy}