From e77afb83edd3ed543a530407594d1da46c13ef08 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:16:50 +0100 Subject: [PATCH] fix --- .../ee/ai-chat/components/ai-chat-layout.tsx | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/apps/client/src/ee/ai-chat/components/ai-chat-layout.tsx b/apps/client/src/ee/ai-chat/components/ai-chat-layout.tsx index f0fe3035..884e4f40 100644 --- a/apps/client/src/ee/ai-chat/components/ai-chat-layout.tsx +++ b/apps/client/src/ee/ai-chat/components/ai-chat-layout.tsx @@ -55,7 +55,7 @@ export default function AiChatLayout() { navigate(location.pathname, { replace: true, state: null }); }, [chatId, location, navigate, sendMessage]); - const hasMessages = messages.length > 0 || isStreaming; + const hasMessages = messages.length > 0 || isStreaming || !!chatId; // While the redirect effect is running (or if the user is still on this // component for any reason) never render the chat UI for a forbidden chat. @@ -65,18 +65,6 @@ export default function AiChatLayout() { return (