mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #24896] bug: Channel model replies ignore uploaded document attachments #123733
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 @rozgo on GitHub (May 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24896
Bug Report
Description
When a user uploads non-image documents, such as PDFs or DOCX files, to a channel and then tags a model in that channel thread, the model reply path does not forward those document attachments to the chat/RAG pipeline.
The UI saves and displays the uploaded channel files, but the backend builds a separate synthetic AI request for the channel model reply. That request currently includes text and image attachments only, so non-image documents are omitted.
Reproduction
Expected Behavior
Channel model replies should receive uploaded non-image documents through the same file/RAG context pipeline used by normal direct chat.
Actual Behavior
The channel model reply request only includes text and image attachments. Non-image files from
thread_message.data.filesare ignored whenmodel_response_handlerbuilds the synthetic chat completion request.Root Cause
backend/open_webui/routers/channels.pycollects image attachments from channel thread messages, but does not pass non-image file attachments intoform_data["files"]. Since the downstream chat completion pipeline reads files from the request metadata, the RAG/file context handler never sees those channel documents.Impact
Users can upload documents to channels and see them in the UI, but tagged model replies cannot use those documents. This makes document comparison and summarization workflows fail in channels even though they work in direct chat.
@owui-terminator[bot] commented on GitHub (May 19, 2026):
⚠️ Missing Issue Title Prefix
@rozgo, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters@owui-terminator[bot] commented on GitHub (May 19, 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:
🟣 #23686 issue: Missing document context in channel messages
This is the closest match: it explicitly reports missing document context in channel messages, and the body says channel model replies do not use uploaded PDF/document context, which aligns with the new bug.
by carpemonf ·
bug🟣 #21582 issue: File attachments show “No content” in UI and are not accessible to the model (0.8.3 / main/ dev)
This issue covers file attachments being inaccessible to the model. While it is not channel-specific, it describes the broader backend/file-context failure for uploaded documents that the new issue is also about.
by MacJedi42 ·
bug🟣 #22880 issue: Models like Gemini and Claude fail when a message contains only file/image attachment without text
This is related to attachment handling in model requests, especially when files are present without text. It is broader than the new issue, but it touches the same attachment-to-model pipeline that channel replies rely on.
by ShirasawaSama ·
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.
@tjbck commented on GitHub (May 19, 2026):
Addressed in dev!