RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: On the multi-model comparison page, the "Apply," "Delete," and "Add" buttons should be disabled whenever any of the models is generating output. (#20723)
balibabu8207010bc175
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.tsxindex 018193c6e1..0d9ac85b51 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@@ -75,6 +75,7 @@ type ChatCardProps = {id: string;idx: number;conversation: IClientConversation;+ isAnyBoxLoading: boolean;setLoading(id: string, loading: boolean): void;} & Pick<MultipleChatBoxProps,@@ -98,6 +99,7 @@ const ChatCard = forwardRef(function ChatCard(files,clearFiles,setLoading,+ isAnyBoxLoading,}: ChatCardProps,ref,) {@@ -215,7 +217,7 @@ const ChatCard = forwardRef(function ChatCard(<Buttonvariant="ghost"size="icon-sm"- disabled={isEmpty(llmId)}+ disabled={isEmpty(llmId) || isAnyBoxLoading}onClick={handleApplyConfig}data-testid="chat-detail-multimodel-card-apply"data-card-index={idx}@@ -231,6 +233,7 @@ const ChatCard = forwardRef(function ChatCard(<Buttonvariant="ghost"size="icon-sm"+ disabled={isAnyBoxLoading}onClick={handleRemoveChatBox}data-testid="chat-detail-multimodel-card-remove"data-card-index={idx}@@ -242,6 +245,7 @@ const ChatCard = forwardRef(function ChatCard(<Buttonvariant="ghost"size="icon-sm"+ disabled={isAnyBoxLoading}onClick={addChatBox}data-testid="chat-detail-multimodel-add-card">@@ -313,6 +317,7 @@ export function MultipleChatBox({}, []);const allChatBoxLoading = [...chatBoxLoading.values()];+ const isAnyBoxLoading = allChatBoxLoading.some((loading) => loading);const showInternet = useShowInternet();@@ -367,6 +372,7 @@ export function MultipleChatBox({setValue={setValue}clearFiles={clearFiles}setLoading={setLoading}+ isAnyBoxLoading={isAnyBoxLoading}></ChatCard>))}</div>@@ -374,7 +380,7 @@ export function MultipleChatBox({<NextMessageInputdisabled={disabled}sendDisabled={sendDisabled}- sendLoading={allChatBoxLoading.some((loading) => loading)}+ sendLoading={isAnyBoxLoading}value={value}resize="vertical"onInputChange={handleInputChange}