[PR #24706] [CLOSED] feat: add "Search the web" option to regenerate response menu #131460

Closed
opened 2026-05-21 17:00:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24706
Author: @silentoplayz
Created: 5/14/2026
Status: Closed

Base: devHead: feat/regenerate-web-search


📝 Commits (1)

  • c6a0d9a feat(chat): add 'search the web' option to regenerate response menu

📊 Changes

3 files changed (+33 additions, -11 deletions)

View changed files

📝 src/lib/components/chat/Chat.svelte (+14 -8)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+4 -2)
📝 src/lib/components/chat/Messages/ResponseMessage/RegenerateMenu.svelte (+15 -1)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.

This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.

Before submitting, make sure you've checked the following:

  • Linked Issue/Discussion: This PR references an existing Issue or DiscussionRelates to discussion post https://github.com/open-webui/open-webui/discussions/24703.
  • Target branch: The pull request targets the dev branch. PRs targeting main will be immediately closed.
  • Description: A concise description of the changes is provided below.
  • Changelog: A changelog entry following Keep a Changelog format is included at the bottom.
  • Documentation: Relevant documentation has been added or updated in the Open WebUI Docs Repository.
  • Dependencies: Any new or updated dependencies are explained, tested, and documented.
  • Testing: Manual tests have been performed to verify the fix/feature works correctly and does not introduce regressions. Screenshots or recordings are included where applicable.
  • No Unchecked AI Code: This PR is either human-written or has undergone thorough human review AND manual testing. Unreviewed AI-generated PRs may be closed immediately.
  • Self-Review: A self-review of the code has been performed, ensuring adherence to project coding standards.
  • Architecture: Smart defaults are preferred over new settings. Local state is used for ephemeral UI logic. Major architectural or UX changes have been discussed first.
  • Git Hygiene: The PR is atomic (one logical change), rebased on dev, and contains no unrelated commits.
  • Title Prefix: The PR title uses one of the following prefixes:
    • feat: New features or enhancements

Changelog Entry

Description

  • Added a "Search the Web" option to the response regeneration menu. This allows users to quickly re-run a query with web search enabled without needing to toggle the global setting. The option is only visible if web search is configured and the user has the required permissions.

Added

  • New "Search the Web" button in the RegenerateMenu component.
  • Support for feature overrides in the regenerateResponse and sendMessage flow in Chat.svelte.

Changed

  • Updated RegenerateMenu to accept a showWebSearch visibility prop.
  • Modified ResponseMessage.svelte to check for web search permissions before showing the option.

Additional Information

Screenshots or Videos

Screenshot:
image

Inspired by ChatGPT of course:

(ChatGPT Search the web option)
image

Manual Verification Performed

  1. Enable Web Search in Admin Settings.
  2. Ensure user has Web Search permission.
  3. Open a chat and generate a response.
  4. Click the "Regenerate" icon to open the menu.
  5. Verify that "Search the Web" is visible at the bottom.
  6. Click "Search the Web" and verify that the response is regenerated with web search enabled (indicated by status messages).
  7. Revoke Web Search permission and verify the button disappears.

Contributor License Agreement


🔄 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/24706 **Author:** [@silentoplayz](https://github.com/silentoplayz) **Created:** 5/14/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/regenerate-web-search` --- ### 📝 Commits (1) - [`c6a0d9a`](https://github.com/open-webui/open-webui/commit/c6a0d9a44df6a392df9c687f7c369e336ae12b77) feat(chat): add 'search the web' option to regenerate response menu ### 📊 Changes **3 files changed** (+33 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+14 -8) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+4 -2) 📝 `src/lib/components/chat/Messages/ResponseMessage/RegenerateMenu.svelte` (+15 -1) </details> ### 📄 Description <!-- ⚠️ CRITICAL CHECKS FOR CONTRIBUTORS (READ, DON'T DELETE) ⚠️ 1. Target the `dev` branch. PRs targeting `main` will be automatically closed. 2. Do NOT delete the CLA section at the bottom. It is required for the bot to accept your PR. --> # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request. This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR. **Before submitting, make sure you've checked the following:** - [x] **Linked Issue/Discussion:** This PR references an existing [Issue](https://github.com/open-webui/open-webui/issues) or [Discussion](https://github.com/open-webui/open-webui/discussions) — `Relates to discussion post https://github.com/open-webui/open-webui/discussions/24703`. - [x] **Target branch:** The pull request targets the `dev` branch. **PRs targeting `main` will be immediately closed.** - [x] **Description:** A concise description of the changes is provided below. - [x] **Changelog:** A changelog entry following [Keep a Changelog](https://keepachangelog.com/) format is included at the bottom. - [ ] **Documentation:** Relevant documentation has been added or updated in the [Open WebUI Docs Repository](https://github.com/open-webui/docs). - [ ] **Dependencies:** Any new or updated dependencies are explained, tested, and documented. - [x] **Testing:** Manual tests have been performed to verify the fix/feature works correctly and does not introduce regressions. Screenshots or recordings are included where applicable. - [x] **No Unchecked AI Code:** This PR is either human-written or has undergone thorough human review AND manual testing. Unreviewed AI-generated PRs may be closed immediately. - [x] **Self-Review:** A self-review of the code has been performed, ensuring adherence to project coding standards. - [x] **Architecture:** Smart defaults are preferred over new settings. Local state is used for ephemeral UI logic. Major architectural or UX changes have been discussed first. - [x] **Git Hygiene:** The PR is atomic (one logical change), rebased on `dev`, and contains no unrelated commits. - [x] **Title Prefix:** The PR title uses one of the following prefixes: - **feat**: New features or enhancements # Changelog Entry ### Description - Added a "Search the Web" option to the response regeneration menu. This allows users to quickly re-run a query with web search enabled without needing to toggle the global setting. The option is only visible if web search is configured and the user has the required permissions. ### Added - New "Search the Web" button in the `RegenerateMenu` component. - Support for feature overrides in the `regenerateResponse` and `sendMessage` flow in `Chat.svelte`. ### Changed - Updated `RegenerateMenu` to accept a `showWebSearch` visibility prop. - Modified `ResponseMessage.svelte` to check for web search permissions before showing the option. --- ### Additional Information - Relates to discussion post: https://github.com/open-webui/open-webui/discussions/24705 ### Screenshots or Videos **Screenshot:** <img width="473" height="341" alt="image" src="https://github.com/user-attachments/assets/cbe65ec9-2710-4c9a-b7ce-c3675c08b495" /> ### Inspired by ChatGPT of course: (ChatGPT `Search the web` option) <img width="804" height="314" alt="image" src="https://github.com/user-attachments/assets/e84687c1-a573-41b4-b436-a724c5c2e27c" /> ### Manual Verification Performed 1. Enable Web Search in Admin Settings. 2. Ensure user has Web Search permission. 3. Open a chat and generate a response. 4. Click the "Regenerate" icon to open the menu. 5. Verify that "Search the Web" is visible at the bottom. 6. Click "Search the Web" and verify that the response is regenerated with web search enabled (indicated by status messages). 7. Revoke Web Search permission and verify the button disappears. ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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 17:00:56 -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#131460