mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #16879] [CLOSED] feat: Human in the loop #127925
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/16879
Author: @leoperleo
Created: 8/24/2025
Status: ❌ Closed
Base:
dev← Head:human-in-the-loop-dev📝 Commits (6)
cb8840dfeat: implement backend tool approval system6d579a1feat: implement WebSocket communication layer for tool approval55bcdeafeat: implement frontend tool approval interface4476e3ffeat: add global tool approval toggle in admin settingse9e042cfeat: add internationalization support for tool approvalef899c0minor fix and refinement📊 Changes
71 files changed (+3052 additions, -7945 deletions)
View changed files
📝
backend/open_webui/config.py(+8 -26)📝
backend/open_webui/main.py(+65 -87)📝
backend/open_webui/routers/auths.py(+9 -13)📝
backend/open_webui/socket/main.py(+111 -4)📝
backend/open_webui/utils/middleware.py(+270 -78)➕
backend/open_webui/utils/tool_approval.py(+122 -0)📝
src/lib/components/admin/Settings/General.svelte(+10 -2)📝
src/lib/components/chat/Chat.svelte(+35 -86)📝
src/lib/components/chat/MessageInput.svelte(+82 -68)➕
src/lib/components/chat/ToolApprovalModal.svelte(+230 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+7 -110)📝
src/lib/i18n/locales/ar/translation.json(+3 -106)📝
src/lib/i18n/locales/bg-BG/translation.json(+4 -107)📝
src/lib/i18n/locales/bn-BD/translation.json(+7 -110)📝
src/lib/i18n/locales/bo-TB/translation.json(+3 -106)📝
src/lib/i18n/locales/ca-ES/translation.json(+5 -108)📝
src/lib/i18n/locales/ceb-PH/translation.json(+7 -110)📝
src/lib/i18n/locales/cs-CZ/translation.json(+1157 -1260)📝
src/lib/i18n/locales/da-DK/translation.json(+3 -106)📝
src/lib/i18n/locales/de-DE/translation.json(+27 -120)...and 51 more files
📄 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
This pull request implements a comprehensive tool approval system that allows users to control when and how AI tools are executed during conversations. The system provides both per-chat and global configuration options, with a user-friendly interface that includes real-time notifications, approval modals, and visual indicators for auto-approval status.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
youtube - demo video
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.