From 3ec5a22177eac5c44cfb0d80a6496a982533c608 Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe Date: Fri, 13 Dec 2024 15:45:14 -0600 Subject: [PATCH] fix: prevent loading state after replay complete when loading threads --- ui/admin/app/components/chat/ChatContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/admin/app/components/chat/ChatContext.tsx b/ui/admin/app/components/chat/ChatContext.tsx index f43ad5208..064da9b3f 100644 --- a/ui/admin/app/components/chat/ChatContext.tsx +++ b/ui/admin/app/components/chat/ChatContext.tsx @@ -109,9 +109,10 @@ function useMessageSource(threadId?: Nullish) { error, runID, contentID, + replayComplete, } = event; - setIsRunning(!runComplete); + setIsRunning(!runComplete && !replayComplete); setMessages((prev) => { const copy = [...prev];