From 2212aac6f7058b58aefc72236023d4a7852f46ed Mon Sep 17 00:00:00 2001 From: suyao Date: Fri, 29 Aug 2025 13:08:00 +0800 Subject: [PATCH] fix(inputbar): conditionally display knowledge icon based on MCP tools visibility - Updated the Inputbar component to conditionally show the knowledge icon only when both `showKnowledgeIcon` and `showMcpTools` are true. This change enhances the visibility logic for the knowledge icon, improving the user interface based on the current context. --- src/renderer/src/pages/home/Inputbar/Inputbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index caba673dc5..696b7c916e 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -900,7 +900,7 @@ const Inputbar: FC = ({ assistant: _assistant, setActiveTopic, topic }) = extensions={supportedExts} setFiles={setFiles} showThinkingButton={showThinkingButton} - showKnowledgeIcon={showKnowledgeIcon} + showKnowledgeIcon={showKnowledgeIcon && showMcpTools} showMcpTools={showMcpTools} selectedKnowledgeBases={selectedKnowledgeBases} handleKnowledgeBaseSelect={handleKnowledgeBaseSelect}