From fae12c8a98bed89aab945b081efdee07570319ad Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:06:31 +0100 Subject: [PATCH] fix: thumbs-down reason and comment are lost when saved before tags are generated (#33716) After a thumbs down, pressing Save in the rating form while the rating's tags were still being generated did nothing: the form showed its thank-you message, but the score, reason and comment were never stored. Save now stores them right away, and clicking a thumb again while a rating is saving is ignored as before. Fixes #33715 --- src/lib/components/chat/Messages/ResponseMessage.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index d54caa4b11..15b97f665a 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -483,7 +483,7 @@ let feedbackLoading = false; const feedbackHandler = async (rating: number | null = null, details: object | null = null) => { - if (feedbackLoading) return; + if (feedbackLoading && rating !== null) return; feedbackLoading = true; console.log('Feedback', rating, details);