mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #23750] perf: MCP tool server reconnects on every message causing 15-20s silent delay #35589
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 @DSavaliya-gh on GitHub (Apr 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23750
Bug Description
When an MCP (Model Context Protocol) tool server is enabled in Open WebUI, every chat message triggers a full MCP connection lifecycle from scratch:
This happens before the model is ever called, and no status event is emitted to the frontend during this phase. The user sees a blinking dot for 15-20 seconds with zero feedback, followed by the model thinking phase.
Steps to Reproduce
Expected Behavior
Actual Behavior
Root Cause
In backend/open_webui/utils/middleware.py, process_chat_payload reconnects every time:
No event_emitter call is made before this block -- the user sees nothing.
Fix (linked PR)
@Classic298 commented on GitHub (Apr 15, 2026):
STOP OPENING / SPAMMING THE ISSUES SECTION