mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #21955] bug: Duplicate images displayed when model with thinking/reasoning generates an image (e.g., Gemini 3 Pro Image Preview) #35154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ashm-dev on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21955
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.5 (also confirmed on latest
devbranch — commitf5bf2a2ed)Ollama Version (if applicable)
N/A
Operating System
Linux (Arch Linux 6.18.9)
Browser (if applicable)
Chromium 133
Confirmation
README.md.Expected Behavior
When a model (e.g.,
google/gemini-3-pro-image-previewvia OpenRouter) generates one image in response, one image should be displayed in the chat.Actual Behavior
The same image is duplicated multiple times in the response. The number of duplicates varies non-deterministically between requests:
Querying the chat data via
/api/v1/chats/{id}confirms thathistory.messages[messageId].filescontains duplicate entries. Example from one request:The exact same file URL appears multiple times. The duplicates are persisted in the database — reloading the page still shows the same number of duplicate images.
Steps to Reproduce
google/gemini-3-pro-image-preview).A giraffe with a hilariously long neckGET /api/v1/chats/{chat_id}→ checkhistory.messages[assistantMessageId].files— it contains duplicate entries with the same URL.Logs & Screenshots
Screenshot showing 3 identical images in a single response:
No browser console errors — only a tiptap warning unrelated to this issue:
Database evidence (from
/api/v1/chats/{id}response):message.filescontains 3 entries (2 identical + 1 with slightly different encoding)message.filescontains 2 entries (same file URL twice)message.filescontains 6 entries (4 of type A + 2 of type B, all visually identical)Additional Information
31dc97b68, 2025-11-19). The latestdevbranch (f5bf2a2ed) still contains the same code path without changes to address duplication.google/gemini-3-pro-image-previewvia OpenRouter (called "Nano Banana Pro" locally). The model supports extended thinking (reasoning) and native image generation.@Classic298 commented on GitHub (Feb 28, 2026):
I tried to reproduce this via openrouter but can't reproduce it. I tried gemini 3 pro image preview and gemini 2.5 flash image. I cannot reproduce it.
As stated in the other duplicate issues - it must be reproducible.