[GH-ISSUE #22741] issue: Prompts Search Results Return "No Prompts Found" on Paginated Views #58470

Closed
opened 2026-05-05 23:13:38 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @silentoplayz on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22741

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.8.10

Ollama Version (if applicable)

v0.18.0

Operating System

Ubuntu 24.04.4 LTS

Browser (if applicable)

Mozilla Firefox Snap for Ubuntu v148.0.2 (64-bit) / Google Chrome v146.0.7680.80 (Official Build) (64-bit)

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When performing a search from any page index in the Prompts workspace, the paginator should reset to page 1 and correctly render the search results matching the query. If a prompt exists for the given query, it should always be visible in the results, regardless of which page the user started the search from.

Actual Behavior

If a search is initiated while viewing a later page of prompts (e.g., page 5), the interface displays the accurate total number of matched items at the top (e.g., 1), but the UI renders "No prompts found." This occurs because the search request queries the API using the existing active page index (e.g., page=5), which yields zero documents because the search results don't span enough pages.

Steps to Reproduce

  1. Start an Open WebUI instance utilizing the v0.8.10 version on Ubuntu 24.04.4 LTS using Firefox v148.0.2.
  2. Log in and navigate to your Prompts workspace via /workspace/prompts.
  3. Ensure you have enough stored prompts to enable pagination (e.g., at least more than 30 prompts to trigger the paginator).
  4. Click on a later page in the bottom pagination bar, for example, 5.
  5. Enter a search query in the search bar, such as OWUI.
  6. Observe that the total count of matches briefly updates at the top (i.e. to Prompts 1).
  7. Notice that the UI simultaneously displays the empty state placeholder: "No prompts found" and "Try adjusting your search or filter to find what you are looking for", despite technically finding a result.

Logs & Screenshots

Image Image

Additional Information

This UI state bug originates in src/lib/components/workspace/Prompts.svelte. Unlike the Models page, which loads all models into memory and performs fast client-side filtering (e.g., filteredModels = models.filter(...)) and explicitly resets its pagination natively, the Prompts page relies on a server-side paginated search by calling getPromptItems() with a query argument.

The reactive search statement on line 63 triggers the debounced getPromptList() function whenever query changes. However, it fails to explicitly reset the page variable back to 1 prior to fetching the search result items. By resetting page = 1; when the search query is modified (while accounting for the second reactive statement that listens to page changes), the query would correctly fetch from the first page of results, resolving the empty state bug.

Originally created by @silentoplayz on GitHub (Mar 17, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22741 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.8.10 ### Ollama Version (if applicable) v0.18.0 ### Operating System Ubuntu 24.04.4 LTS ### Browser (if applicable) Mozilla Firefox Snap for Ubuntu v148.0.2 (64-bit) / Google Chrome v146.0.7680.80 (Official Build) (64-bit) ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When performing a search from any page index in the Prompts workspace, the paginator should reset to page `1` and correctly render the search results matching the query. If a prompt exists for the given query, it should always be visible in the results, regardless of which page the user started the search from. ### Actual Behavior If a search is initiated while viewing a later page of prompts (e.g., page 5), the interface displays the accurate total number of matched items at the top (e.g., `1`), but the UI renders "No prompts found." This occurs because the search request queries the API using the existing active page index (e.g., `page=5`), which yields zero documents because the search results don't span enough pages. ### Steps to Reproduce 1. Start an Open WebUI instance utilizing the `v0.8.10` version on Ubuntu 24.04.4 LTS using Firefox v148.0.2. 2. Log in and navigate to your `Prompts` workspace via `/workspace/prompts`. 3. Ensure you have enough stored prompts to enable pagination (e.g., at least more than `30` prompts to trigger the paginator). 4. Click on a later page in the bottom pagination bar, for example, `5`. 5. Enter a search query in the search bar, such as `OWUI`. 6. Observe that the total count of matches briefly updates at the top (i.e. to `Prompts 1`). 7. Notice that the UI simultaneously displays the empty state placeholder: "No prompts found" and "Try adjusting your search or filter to find what you are looking for", despite technically finding a result. ### Logs & Screenshots <img width="2334" height="470" alt="Image" src="https://github.com/user-attachments/assets/d5959bbc-8870-4a94-a24c-d8f98d6b6e36" /> <img width="1164" height="319" alt="Image" src="https://github.com/user-attachments/assets/c1e12f56-f228-4693-90ae-2136b3ff16ce" /> ### Additional Information This UI state bug originates in `src/lib/components/workspace/Prompts.svelte`. Unlike the `Models` page, which loads all models into memory and performs fast **client-side** filtering (e.g., `filteredModels = models.filter(...)`) and explicitly resets its pagination natively, the `Prompts` page relies on a **server-side** paginated search by calling `getPromptItems()` with a `query` argument. The reactive search statement on line 63 triggers the debounced `getPromptList()` function whenever `query` changes. However, it fails to explicitly reset the `page` variable back to `1` prior to fetching the search result items. By resetting `page = 1;` when the search query is modified (while accounting for the second reactive statement that listens to `page` changes), the query would correctly fetch from the first page of results, resolving the empty state bug.
GiteaMirror added the bugconfirmed issue labels 2026-05-05 23:13:39 -05:00
Author
Owner

@silentoplayz commented on GitHub (Mar 22, 2026):

Addressed with 0afb8f681b.

<!-- gh-comment-id:4105746964 --> @silentoplayz commented on GitHub (Mar 22, 2026): Addressed with https://github.com/open-webui/open-webui/commit/0afb8f681b5cd74f0f9def1b96a10fd258816245.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58470