[PR #18582] [CLOSED] feat: command processing and knowledgebase processing in suggested prompts #24841

Closed
opened 2026-04-20 05:36:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18582
Author: @Classic298
Created: 10/24/2025
Status: Closed

Base: devHead: variables-in-prompt-suggestions


📝 Commits (4)

📊 Changes

1 file changed (+98 additions, -3 deletions)

View changed files

📝 src/lib/components/chat/Chat.svelte (+98 -3)

📄 Description

Pull Request Checklist

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch may lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
  • Agentic AI Code:: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review and manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

https://github.com/open-webui/open-webui/discussions/17961
https://github.com/open-webui/open-webui/issues/17997
https://github.com/open-webui/open-webui/discussions/18523

  • Automatically replaces /commands in suggested prompts with the stored prompt in the backend
  • Automatically replaces #knowledge with knowledgebases stored in the backend

Important

THIS PR WORKS AS STANDALONE, BUT ONLY BECOMES REALLY USEFUL IF MERGED IN CONJUNCTION WITH #18580

Screenshots or Videos

Note

Two videos to showcase both feature additions.

Screencast_20251024_125935.webm

Screencast_20251024_133410.webm

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18582 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 10/24/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `variables-in-prompt-suggestions` --- ### 📝 Commits (4) - [`3d999f6`](https://github.com/open-webui/open-webui/commit/3d999f6df98eb13d3df44d18022eeaa20c524646) Implement command processing in Chat component - [`f49991d`](https://github.com/open-webui/open-webui/commit/f49991d9d2d3a3f7e98f67d728934c4dea587935) Update Chat.svelte - [`37b51e6`](https://github.com/open-webui/open-webui/commit/37b51e6cd8270bf83df62ffc892d4a50a2e5d296) Update Chat.svelte - [`14886bb`](https://github.com/open-webui/open-webui/commit/14886bb4dfe2cb87cd3fe5e8b1ca4df26dc5fe99) Update Chat.svelte ### 📊 Changes **1 file changed** (+98 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+98 -3) </details> ### 📄 Description # Pull Request Checklist - [X] **Target branch:** Verify that the pull request targets the `dev` branch. Not targeting the `dev` branch may lead to immediate closure of the PR. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description. - [X] **Agentic AI Code:**: Confirm this Pull Request is **not written by any AI Agent** or has at least gone through additional human review **and** manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description https://github.com/open-webui/open-webui/discussions/17961 https://github.com/open-webui/open-webui/issues/17997 https://github.com/open-webui/open-webui/discussions/18523 - Automatically replaces /commands in suggested prompts with the stored prompt in the backend - Automatically replaces #knowledge with knowledgebases stored in the backend > [!IMPORTANT] > ### THIS PR WORKS AS STANDALONE, BUT ONLY BECOMES REALLY USEFUL IF MERGED IN CONJUNCTION WITH #18580 ### Screenshots or Videos > [!NOTE] > Two videos to showcase both feature additions. [Screencast_20251024_125935.webm](https://github.com/user-attachments/assets/66842f14-ea79-4c39-b0ac-5a09edc397f9) [Screencast_20251024_133410.webm](https://github.com/user-attachments/assets/c7962a36-db15-482c-bdc8-9dc89fce3d40) ### Contributor License Agreement 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-04-20 05:36:58 -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#24841