mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-26 17:30:27 -04:00
fix: show ComfyUI images saved by the Save Image (Advanced) node (#30420)
When a ComfyUI workflow ends in the core "Save Image (Advanced)" node, ComfyUI finishes the job and saves the image, but Open WebUI returns an empty result, so the chat shows nothing. Image editing workflows such as the Qwen Image Edit template use this node by default. Open WebUI only collects images from output nodes of type SaveImage and PreviewImage. This adds SaveImageAdvanced to that list. The node reports its files in the same format as SaveImage, so the rest of the download and storage path works unchanged. Generation and editing share this code, so both are fixed. Fixes #30404
This commit is contained in:
@@ -91,6 +91,7 @@ async def _ws_get_images(ws, workflow, client_id, base_url, api_key):
|
||||
node_output = history['outputs'][node_id]
|
||||
if node_id in workflow and workflow[node_id].get('class_type') in [
|
||||
'SaveImage',
|
||||
'SaveImageAdvanced',
|
||||
'PreviewImage',
|
||||
]:
|
||||
if 'images' in node_output:
|
||||
|
||||
Reference in New Issue
Block a user