mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 15:27:37 -05:00
[GH-ISSUE #20497] issue: Channel model mentions not working - 'str' object has no attribute 'app' #34729
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 @jasverma-hub on GitHub (Jan 9, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20497
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.43
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04.5 LTS
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
When mentioning a model in a channel (e.g.,
@gpt-4.1 hi), the model should receive the message and respond with a reply in the channel thread.Actual Behavior
When mentioning a model in a channel, the model shows a typing indicator (●) but never responds. The error
'str' object has no attribute 'app'appears in the logs.The issue is caused by:
requestobject becoming invalid in background tasks after HTTP response is sentrequestparameter inupdate_message_by_idcalls withinmodel_response_handlerfunctionError log: 'str' object has no attribute 'app'
Full traceback: Traceback (most recent call last):
File "/app/backend/open_webui/routers/channels.py", line 1037, in model_response_handler
await update_message_by_id(
File "/app/backend/open_webui/routers/channels.py", line 1441, in update_message_by_id
check_channels_access(request)
File "/app/backend/open_webui/routers/channels.py", line 89, in check_channels_access
if not request.app.state.config.ENABLE_CHANNELS:
AttributeError: 'str' object has no attribute 'app'
Steps to Reproduce
Deploy OpenWebUI using Docker with the following environment variables:
Configure a model connection (e.g., Azure OpenAI, OpenAI, or Ollama)
Log in to OpenWebUI as an admin user
Create a new channel or use an existing channel
In the channel, mention a model by typing: @gpt-4.1 hi (or any configured model)
Observe: The model shows a typing indicator (●) but never responds
Check the container logs:
docker logs openwebui --tail 100
You will see the error: 'str' object has no attribute 'app'
Configuration used:
Logs & Screenshots
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Jan 9, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#20157 issue: Channels: Model @ mention fails with "'str' object has no attribute 'app'"
by sheldonbob • Dec 24, 2025 •
bug#19103 issue: no response from the model when ask in "channels"
by silenceroom • Nov 11, 2025 •
bug#20150 issue: Tools not included for models in channel messages
by zhiweit • Dec 24, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.