mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
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/20746
Author: @YuriNachos
Created: 1/17/2026
Status: ❌ Closed
Base:
main← Head:fix-rediscluster-publish📝 Commits (6)
f84aad5fix: handle None value for model capabilities in builtin_tools check0d4898ffix: handle None value for model capabilities in file_context check9772be0fix: handle None value for capabilities in get_model_capability helper3d404fffix: URL-encode OAuth client secrets to handle special characters3079444fix: Decode HTML entities in tool call results before sending to LLMc1ec294fix: Support RedisCluster for task command pub/sub messaging📊 Changes
5 files changed (+32 additions, -15 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -6)📝
backend/open_webui/tasks.py(+19 -1)📝
backend/open_webui/utils/middleware.py(+4 -6)📝
backend/open_webui/utils/tools.py(+1 -1)📝
src/lib/utils/index.ts(+2 -1)📄 Description
Summary
Fixes #19840
When using Redis Cluster, stopping a task via POST /api/tasks/stop/{task_id}
results in AttributeError: 'RedisCluster' object has no attribute 'publish'
Root Cause
The
redis_send_command()function directly callsredis.publish(), but:publish()methodpublish()method that broadcasts to all nodesChanges
backend/open_webui/tasks.pyRedisClusterclass import fromredis.clusterredis_send_command()to handle both:publish()normallyTest
The fix ensures task stop commands reach all worker nodes:
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.