From 9c8f4f5fe3e405628ad9677f096ae3c6130ac293 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 29 Jul 2026 16:21:53 +0800 Subject: [PATCH] Fix: On the multi-model comparison chat page, if there is more than one window, each window can be deleted. (#17523) --- web/src/constants/agent.tsx | 1 - .../next-chats/chat/chat-box/next-multiple-chat-box.tsx | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/constants/agent.tsx b/web/src/constants/agent.tsx index e5e5d16e5a..5a2b3f9565 100644 --- a/web/src/constants/agent.tsx +++ b/web/src/constants/agent.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { setInitialChatVariableEnabledFieldValue } from '@/utils/chat'; import { Circle, diff --git a/web/src/pages/next-chats/chat/chat-box/next-multiple-chat-box.tsx b/web/src/pages/next-chats/chat/chat-box/next-multiple-chat-box.tsx index 0d73c8bda0..083897008f 100644 --- a/web/src/pages/next-chats/chat/chat-box/next-multiple-chat-box.tsx +++ b/web/src/pages/next-chats/chat/chat-box/next-multiple-chat-box.tsx @@ -226,7 +226,7 @@ const ChatCard = forwardRef(function ChatCard(

{t('chat.applyModelConfigs')}

- {!isLatestChat || chatBoxIds.length === 3 ? ( + {chatBoxIds.length > 1 && ( - ) : ( + )} + {isLatestChat && idx < 2 && (