issue: rating a reply again after its feedback entry is deleted shows a not-found error
Before Submitting
- I searched open and closed issues and discussions for an existing report.
- I checked whether this is already fixed on the
devbranch or latest source. - I understand that maintainers want a well-written issue before any code pull request.
- I am using the latest available version of Open WebUI for my install method.
- This is not a security vulnerability.
Installation Method
Git Clone
Open WebUI Version
dev at 58b36765a7c20f5943a3180bd289de48876d0878
Operating System
Ubuntu 26.04.1 LTS
Browser
Firefox 155.0
Ollama Version
0.34.0
Summary
After an admin deletes a reply's entry from the Feedback page, rating that reply again fails. Clicking either thumb on it shows the error "We could not find what you're looking for :/" and no new feedback entry is saved.
Expected Behavior
Rating the reply again saves a new feedback entry, the same way a reply that was never rated is saved.
Actual Behavior
Clicking Good Response or Bad Response on the reply shows the toast "We could not find what you're looking for :/". This happens on the thumb that held the deleted vote and on the other thumb. Clicking Save in the rating form that opens shows "Thanks for your feedback!" together with the same error. The thumb still shows as selected, but no new entry appears on the Feedback page.
Steps to Reproduce
- Send any message to a model and wait for the reply to finish.
- Click
Good Responseon the reply and clickSave. - Go to Admin Panel, Evaluations, Feedback, open the menu on the entry for that reply, and click
Delete. - Go back to the chat and click
Good Responseon the same reply. The toast "We could not find what you're looking for :/" appears. - Click
Bad Responseon the same reply. The same toast appears. - Go back to the Feedback page. No entry for that reply is listed.
Logs, Screenshots, and Config
The toast after clicking a thumb:
I did not capture browser console or server logs.
Additional Information
Anchored to 58b36765a7c20f5943a3180bd289de48876d0878.
The first rating saves the new entry's ID on the message in the chat. Every later click updates the entry with that ID and only creates a new entry when the message has no ID. This has worked this way since ce85400817e91b55efd836074e3adc36c95afa76 (2024-10-22). https://github.com/open-webui/open-webui/blob/58b36765a7c20f5943a3180bd289de48876d0878/src/lib/components/chat/Messages/ResponseMessage.svelte#L520-L537
Deleting an entry removes it from the database, but the ID stays on the message. The update then finds no entry and returns a not-found error, which is the toast text. https://github.com/open-webui/open-webui/blob/58b36765a7c20f5943a3180bd289de48876d0878/src/lib/components/admin/Evaluations/Feedbacks.svelte#L115-L125 https://github.com/open-webui/open-webui/blob/58b36765a7c20f5943a3180bd289de48876d0878/backend/open_webui/routers/evaluations.py#L462-L476
Nothing creates a replacement entry after the error, so that reply cannot be counted on the Feedback page or the leaderboard again. Creating a new entry when the update finds none would recover it.
Source: open-webui/open-webui