From e2b4d759adab4946f1ecc97cf328d480afbc8e18 Mon Sep 17 00:00:00 2001 From: Kingshuk-Microsoft Date: Fri, 20 Feb 2026 13:47:56 +0530 Subject: [PATCH] fix: prevent new conversation action when no messages are present --- .../src/app/frontend/src/components/ChatHistory.tsx | 8 ++++---- content-gen/src/app/frontend/src/components/ChatPanel.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content-gen/src/app/frontend/src/components/ChatHistory.tsx b/content-gen/src/app/frontend/src/components/ChatHistory.tsx index ed9f97762..6acf715a7 100644 --- a/content-gen/src/app/frontend/src/components/ChatHistory.tsx +++ b/content-gen/src/app/frontend/src/components/ChatHistory.tsx @@ -279,15 +279,15 @@ export function ChatHistory({ )} diff --git a/content-gen/src/app/frontend/src/components/ChatPanel.tsx b/content-gen/src/app/frontend/src/components/ChatPanel.tsx index 1b4dc58d4..bf757acf9 100644 --- a/content-gen/src/app/frontend/src/components/ChatPanel.tsx +++ b/content-gen/src/app/frontend/src/components/ChatPanel.tsx @@ -286,7 +286,7 @@ export function ChatPanel({ icon={} size="small" onClick={onNewConversation} - disabled={isLoading} + disabled={isLoading || messages.length === 0} style={{ minWidth: '32px', height: '32px',