mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #20326] [CLOSED] fix: pass request when updating channel messages #41198
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20326
Author: @rbb-dev
Created: 1/2/2026
Status: ❌ Closed
Base:
dev← Head:fix/channels-model-response-update-request📝 Commits (9)
fe6783cMerge pull request #19030 from open-webui/devfc05e0aMerge pull request #19405 from open-webui/deve3faec6Merge pull request #19416 from open-webui/dev9899293Merge pull request #19448 from open-webui/dev140605eMerge pull request #19462 from open-webui/dev6f1486fMerge pull request #19466 from open-webui/devd95f533Merge pull request #19729 from open-webui/deva7271530.6.43 (#20093)fd35ea2fix: pass request when updating channel messages📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/channels.py(+2 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch.fixDescription
Channels “model mention” auto-replies (e.g. mentioning a model in a channel thread) can get stuck in a perpetual loading state. The backend logs show an exception:
'str' object has no attribute 'app'fromopen_webui.routers.channels:model_response_handler.Root cause:
update_message_by_idwas updated to requirerequest: Request(and now callscheck_channels_access(request)), butmodel_response_handlerstill invoked it with the legacy positional argument list, passingchannel.idinto therequestslot. This raises, the exception is swallowed, and the placeholder message never gets updated todone=true, leaving the UI spinner running forever.This PR fixes the two call sites in
model_response_handlerto passrequestas the first argument.Testing / Verification (Manual)
v0.6.42+(reproduced onv0.6.43)'str' object has no attribute 'app'is logged.Screenshots or Videos
Changelog Entry
Description
Fix Channels model mention auto-replies getting stuck in “generating” state due to an internal call to
update_message_by_idmissing therequestargument.Added
Changed
Deprecated
Removed
Fixed
model_response_handlernow correctly passesrequestwhen updating the placeholder message, preventing'str' object has no attribute 'app'and allowing the message to be updated todone=true.Security
Breaking Changes
Additional Information
ENABLE_CHANNELSviacheck_channels_access(request)and updated endpoint signatures to includerequest: Request.Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.