[PR #24305] [CLOSED] fix: merge filter tools with internal tools instead of replacing #131260

Closed
opened 2026-05-21 16:31:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24305
Author: @aayushbaluni
Created: 5/2/2026
Status: Closed

Base: devHead: fix/24237-merge-filter-tools


📝 Commits (1)

  • ea9552c fix: merge filter tools with internal tools instead of replacing

📊 Changes

1 file changed (+23 additions, -6 deletions)

View changed files

📝 backend/open_webui/utils/middleware.py (+23 -6)

📄 Description

Problem

When tools are set in a Filter function, internal Open WebUI tools get overwritten instead of merged, so built-in tools become unavailable.

Change

Merge filter-provided tools with existing internal tools rather than replacing the entire tools list.

Fixes #24237.

Made with Cursor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24305 **Author:** [@aayushbaluni](https://github.com/aayushbaluni) **Created:** 5/2/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/24237-merge-filter-tools` --- ### 📝 Commits (1) - [`ea9552c`](https://github.com/open-webui/open-webui/commit/ea9552cc3d94ce16d4e9d80a3d000b16a45a1025) fix: merge filter tools with internal tools instead of replacing ### 📊 Changes **1 file changed** (+23 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/middleware.py` (+23 -6) </details> ### 📄 Description ## Problem When tools are set in a Filter function, internal Open WebUI tools get overwritten instead of merged, so built-in tools become unavailable. ## Change Merge filter-provided tools with existing internal tools rather than replacing the entire tools list. Fixes #24237. Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 16:31:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#131260