mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22741] issue: Prompts Search Results Return "No Prompts Found" on Paginated Views #19804
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?
Originally created by @silentoplayz on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22741
Check Existing Issues
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
README.md.Expected Behavior
When performing a search from any page index in the Prompts workspace, the paginator should reset to page
1and 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
v0.8.10version on Ubuntu 24.04.4 LTS using Firefox v148.0.2.Promptsworkspace via/workspace/prompts.30prompts to trigger the paginator).5.OWUI.Prompts 1).Logs & Screenshots
Additional Information
This UI state bug originates in
src/lib/components/workspace/Prompts.svelte. Unlike theModelspage, which loads all models into memory and performs fast client-side filtering (e.g.,filteredModels = models.filter(...)) and explicitly resets its pagination natively, thePromptspage relies on a server-side paginated search by callinggetPromptItems()with aqueryargument.The reactive search statement on line 63 triggers the debounced
getPromptList()function wheneverquerychanges. However, it fails to explicitly reset thepagevariable back to1prior to fetching the search result items. By resettingpage = 1;when the search query is modified (while accounting for the second reactive statement that listens topagechanges), the query would correctly fetch from the first page of results, resolving the empty state bug.@silentoplayz commented on GitHub (Mar 22, 2026):
Addressed with
0afb8f681b.