$ the-wire · showcase
Open WebUI fixes MCP cleanup cancel-scope crash and expands language support
By RepoJournal · Filed · About Open WebUI
A fix removes asyncio.wait_for/shield from MCP cleanup in the chat handler, preventing a BaseException crash on anyio cancel-scope violations.
The MCP cleanup fix in the chat handler addresses a crash caused by asyncio.wait_for() and asyncio.shield(). [1] These functions create new tasks that violate anyio cancel-scope ownership rules, and exiting the MCPClient exit_stack from a different task triggers 'Attempted to exit a cancel scope that isn't the current task's current cancel scope' as a BaseException. Removing them resolves the crash; no migration is needed, but testing chat with MCP is recommended.
Open WebUI expands i18n coverage with a new Tagalog (Filipino) translation [2] and updates to Catalan [3] and Chinese [4]. These are additive; existing locale files are unchanged. The Chinese improvements and Catalan update refine wording for accuracy.
The SECURITY.md file was updated, likely reflecting revised disclosure or support policies. [5] No security incident is disclosed in the change; review the updated file to know any process changes.
Action items
- → Test chat workflows with MCP after this fix if you hit the cancel-scope crash open-webui/open-webui [plan]
- → Review updated SECURITY.md for any change in reporting process open-webui/open-webui [monitor]
References
- [1] fix(mcp): remove asyncio.wait_for/shield from MCP cleanup in chat handler (#24105) ↗ open-webui/open-webui
- [2] i18n: Add Tagalog (Filipino) translation ↗ open-webui/open-webui
- [3] i18n: Update Catalan translation.json ↗ open-webui/open-webui
- [4] I18n/improve chinese translation ↗ open-webui/open-webui
- [5] chore: Update SECURITY.md (#24363) ↗ open-webui/open-webui