From 5d5faf0a9361f7fca9a3056d853028befbf38dfc Mon Sep 17 00:00:00 2001 From: Barnaby Keene <1636971+Southclaws@users.noreply.github.com> Date: Sat, 28 Dec 2024 22:35:51 +0000 Subject: [PATCH] fix ask keeping sources from previous run --- web/src/screens/ask/AskScreen.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/screens/ask/AskScreen.tsx b/web/src/screens/ask/AskScreen.tsx index 36828002..f2f7bf1d 100644 --- a/web/src/screens/ask/AskScreen.tsx +++ b/web/src/screens/ask/AskScreen.tsx @@ -124,6 +124,8 @@ export function Ask() { throw new Error(`Error: response is empty`); } + setSources({}); + const reader = response.body.getReader(); const decoder = new TextDecoder("utf-8"); let done = false;