mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 07:46:16 -05:00
[PR #16658] [CLOSED] fix(tools): broadcast tool updates to all replicas #127857
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/16658
Author: @sihyeonn
Created: 8/16/2025
Status: ❌ Closed
Base:
dev← Head:fix/sh-update-tools📝 Commits (2)
5a82bd3fix(tools): broadcast tool updates to all replicasbcde31dchore: add test for broadcasting on tool update📊 Changes
3 files changed (+74 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/tools.py(+13 -0)➕
backend/open_webui/test/apps/webui/routers/test_tools.py(+50 -0)📝
src/routes/+layout.svelte(+11 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
We noticed that after a tool was modified, only the local frontend received the update while other replicas stayed stale.
This patch broadcasts a
tools:updatesocket event from the create, update and delete endpoints, allowing every WebUI instance to reload the tool list in real-time.Added
tools:updateemit in create & delete endpoints (update already existed).{ id, name }to keep Redis traffic low.Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
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.