[GH-ISSUE #24435] issue: Refining a generated image sometimes refines a input image instead #107297

Closed
opened 2026-05-18 06:02:50 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @i0ntempest on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24435

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

0.9.2

Ollama Version (if applicable)

No response

Operating System

macOS 26.4

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When I ask a model to refine a image generated based on some input images, it would sometimes apply the refinement to one of the input images instead. It looks like it's choosing a random image in the whole chat to refine.

Actual Behavior

Model should refine the generated image

Steps to Reproduce

  1. Configure image generation and editing to use openai. I'm using gpt-image-2.
  2. Ask a model to generate an image based on some input images
  3. After the image is generated, ask the model to refine it
  4. The model could refine the wrong image. Not every time but often.

Logs & Screenshots

[Error] Viewport argument key "interactive-widget" not recognized and ignored. (i0ntempest.dynu.net, line 30)
[Log] Running content.js (content.js, line 1)
[Info] Object (Cki6Km87.js, line 2)
[Info] false (Cki6Km87.js, line 2)
[Info] Object (Cki6Km87.js, line 2)
[Info] false (Cki6Km87.js, line 2)
[Info] Object (Cki6Km87.js, line 2)
[Info] false (Cki6Km87.js, line 2)
[Error] TypeError: null is not an object (evaluating 's(ee).scrollHeight')
	(anonymous function) (BPOznZuZ.js:162:5306)
	Ft (CD8kWLvT.js:1:24023)
[Warning] File upload warning: – "File type image/jpeg is not supported for processing" (36.aboP8JJk.js, line 1)
[Info] Object (Cki6Km87.js, line 2)
[Info] false (Cki6Km87.js, line 2)
[Info] Object (Cki6Km87.js, line 2)
[Info] false (Cki6Km87.js, line 2)
[Error] TypeError: null is not an object (evaluating 's(ee).scrollHeight')
	(anonymous function) (BPOznZuZ.js:162:5306)
	Ft (CD8kWLvT.js:1:24023)

Additional Information

No response

Originally created by @i0ntempest on GitHub (May 7, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/24435 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version 0.9.2 ### Ollama Version (if applicable) _No response_ ### Operating System macOS 26.4 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When I ask a model to refine a image generated based on some input images, it would sometimes apply the refinement to one of the input images instead. It looks like it's choosing a random image in the whole chat to refine. ### Actual Behavior Model should refine the generated image ### Steps to Reproduce 1. Configure image generation and editing to use openai. I'm using gpt-image-2. 2. Ask a model to generate an image based on some input images 3. After the image is generated, ask the model to refine it 4. The model could refine the wrong image. Not every time but often. ### Logs & Screenshots ``` [Error] Viewport argument key "interactive-widget" not recognized and ignored. (i0ntempest.dynu.net, line 30) [Log] Running content.js (content.js, line 1) [Info] Object (Cki6Km87.js, line 2) [Info] false (Cki6Km87.js, line 2) [Info] Object (Cki6Km87.js, line 2) [Info] false (Cki6Km87.js, line 2) [Info] Object (Cki6Km87.js, line 2) [Info] false (Cki6Km87.js, line 2) [Error] TypeError: null is not an object (evaluating 's(ee).scrollHeight') (anonymous function) (BPOznZuZ.js:162:5306) Ft (CD8kWLvT.js:1:24023) [Warning] File upload warning: – "File type image/jpeg is not supported for processing" (36.aboP8JJk.js, line 1) [Info] Object (Cki6Km87.js, line 2) [Info] false (Cki6Km87.js, line 2) [Info] Object (Cki6Km87.js, line 2) [Info] false (Cki6Km87.js, line 2) [Error] TypeError: null is not an object (evaluating 's(ee).scrollHeight') (anonymous function) (BPOznZuZ.js:162:5306) Ft (CD8kWLvT.js:1:24023) ``` ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-18 06:02:50 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (May 7, 2026):

🔍 Related Issues Found

I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:

  1. 🟣 #21806 issue: 0.8.5 image editing always uses first uploaded image id
    This is the closest match: it reports image editing using the wrong uploaded image, specifically always reusing the first uploaded image id. The new issue has the same class of bug, but with the refined/generated image sometimes being applied to an earlier input image instead.
    by iChristGit · bug

  2. 🟣 #19339 issue: Multiple input images for image edit and generation are passed as separate instances instead of as a list
    This earlier bug involved multiple input images being handled incorrectly for image generation/editing. It’s relevant because the new issue also appears to stem from incorrect image selection/association when several images exist in a chat.
    by eml-henn · bug

  3. 🟣 #21114 issue: Multiple image edits do not meet expectations.
    This issue covers image editing behavior going wrong across multiple edit steps in the same chat. While not identical, it suggests a related state-tracking problem in the image-edit workflow that could overlap with the wrong-image refinement bug.
    by gitFox117 · bug


💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.

This comment was generated automatically. React with 👍 if helpful, 👎 if not.

<!-- gh-comment-id:4400596272 --> @owui-terminator[bot] commented on GitHub (May 7, 2026): <!-- terminator-bot:related-issues-reply --> 🔍 **Related Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. 🟣 [#21806](https://github.com/open-webui/open-webui/issues/21806) **issue: 0.8.5 image editing always uses first uploaded image id** *This is the closest match: it reports image editing using the wrong uploaded image, specifically always reusing the first uploaded image id. The new issue has the same class of bug, but with the refined/generated image sometimes being applied to an earlier input image instead.* *by iChristGit · `bug`* 2. 🟣 [#19339](https://github.com/open-webui/open-webui/issues/19339) **issue: Multiple input images for image edit and generation are passed as separate instances instead of as a list** *This earlier bug involved multiple input images being handled incorrectly for image generation/editing. It’s relevant because the new issue also appears to stem from incorrect image selection/association when several images exist in a chat.* *by eml-henn · `bug`* 3. 🟣 [#21114](https://github.com/open-webui/open-webui/issues/21114) **issue: Multiple image edits do not meet expectations.** *This issue covers image editing behavior going wrong across multiple edit steps in the same chat. While not identical, it suggests a related state-tracking problem in the image-edit workflow that could overlap with the wrong-image refinement bug.* *by gitFox117 · `bug`* --- 💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead. *This comment was generated automatically.* React with 👍 if helpful, 👎 if not.
Author
Owner

@tjbck commented on GitHub (May 8, 2026):

Addressed in dev!

<!-- gh-comment-id:4407986037 --> @tjbck commented on GitHub (May 8, 2026): Addressed in dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#107297