mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #4992] Unable to remove image from chat thread/context window #13817
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 @tkg61 on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4992
Bug Report
Installation Method
Helm in k8s 1.29
Environment
Open WebUI Version: 0.3.15
Ollama (if applicable): N/A
Operating System: Ubuntu
Browser (if applicable): Chrome
Confirmation:
Expected Behavior:
When a user uploads an image to interact with, they should be able to remove that image, similar to how documents can be removed from a thread, if they want to interact with another image in the same thread.
Actual Behavior:
When uploading an image it is inserted into the chat but you can not remove it when you go to the three bars in teh top right. For some on-prem LLM solutions you can't have 2 images in the same chat OR you might just want to remove an image from a thread.
Description
Bug Summary:
Unable to remove image from a chat thread
Reproduction Details
Steps to Reproduce:
Upload an image to a thread, try to open the three bar menu on the right to remove it, similar to how documents are removed, and you aren't given an option to do that.
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots/Screen Recordings (if applicable):

Additional Information
To resolve this we have to start a new thread for each image we upload, get a little cluttered :(
Note
Another nice to have option (not sure if it is worth it) would be to remove the previous image from the context window automatically upon uploading a second image but continue to keep the description of that image for continued use while other images are interacted with
@silentoplayz commented on GitHub (Aug 28, 2024):
That is because the conversation just started. You can not delete the first query you sent after you have started the chat. If you had just uploaded one more image and asked another question, you would become aware of this. I don't see a bug here.
@tkg61 commented on GitHub (Aug 28, 2024):
So would it be the case that even with chatting with the model before hand that it still doesn't show and would only show upon a second image being sent?
Appreciate the help
@silentoplayz commented on GitHub (Aug 28, 2024):
Yes, that is the case. Your first query sent in a chat can not be deleted, no matter if it contains text, text + a document linked for RAG, or text + a document for use with vision models.
@tkg61 commented on GitHub (Aug 28, 2024):
Sorry for being a little dense then, So in the pic above, the image is my second query, should i still not be able to delete it then on the right hand menu based on what you just said? Since if i upload a non-picture file it shows up on the side for me to delete after the first query:
Was hoping the image to show up under "files"
@silentoplayz commented on GitHub (Aug 28, 2024):
Image attachments will not show up within the
Chat Controlssidebar beneath theFilessection like you might've been expecting.A document or a collection of documents will only appear within the
Filessection of theChat Controlssidebar if documents were sent in the chat with a query of yours. TheXbutton you circled in red within theChat Controlssidebar is to remove a Document from the chat context, so that you can carry on in the chat without the LLM using your document(s) as ground truth for knowledge. Whether the same should be done for image attachments is rather questionable at best.@tkg61 commented on GitHub (Aug 28, 2024):
Would that be a separate feature request then so that we can remove it from the context window? Should i make a new issue for that or can we convert this one?
I'd like to be able to remove a picture without having to start a separate thread altogether for each picture we interact with. We will end up with a lot of chats that need deleting