diff --git a/components/chat/chatBar/commands.tsx b/components/chat/chatBar/commands.tsx index 70d05da5..566572c0 100644 --- a/components/chat/chatBar/commands.tsx +++ b/components/chat/chatBar/commands.tsx @@ -204,22 +204,6 @@ export default function Commands({ ]); setToolCatalogOpen(false); }} - removeTool={(tool) => { - socket?.emit('removeTool', tool); - setMessages((prev) => [ - ...prev, - { - type: MessageType.Alert, - icon: , - name: prev ? prev[prev.length - 1].name : undefined, - message: `Removed ${tool - .split('/') - .pop() - ?.replace(/-/g, ' ') - .replace(/\b\w/g, (c) => c.toUpperCase())}`, - }, - ]); - }} isOpen={toolCatalogOpen} setIsOpen={setToolCatalogOpen} /> diff --git a/components/chat/chatBar/toolCatalog.tsx b/components/chat/chatBar/toolCatalog.tsx index dbfccbb5..9282f70d 100644 --- a/components/chat/chatBar/toolCatalog.tsx +++ b/components/chat/chatBar/toolCatalog.tsx @@ -6,7 +6,6 @@ interface ToolCatalogModalProps { isOpen: boolean; setIsOpen: (open: boolean) => void; addTool: (tool: string) => void; - removeTool: (tool: string) => void; } const ToolCatalogModal: React.FC = ({ @@ -14,7 +13,6 @@ const ToolCatalogModal: React.FC = ({ isOpen, setIsOpen, addTool, - removeTool, }) => { return ( = ({ > - + diff --git a/components/edit/configure/imports.tsx b/components/edit/configure/imports.tsx index 50db90b2..cdbde045 100644 --- a/components/edit/configure/imports.tsx +++ b/components/edit/configure/imports.tsx @@ -173,13 +173,6 @@ const Imports: React.FC = ({ addTool={(tool) => { setTools([...(tools || []), tool]); }} - removeTool={(tool) => { - if (isRemote(tool)) { - deleteRemoteTool(tool); - } else { - setTools(tools?.filter((t) => t !== tool) || []); - } - }} /> {enableLocal && (