diff --git a/ui/desktop/src/components/BottomMenu.tsx b/ui/desktop/src/components/BottomMenu.tsx index 4a1bc1b8..f9fa62af 100644 --- a/ui/desktop/src/components/BottomMenu.tsx +++ b/ui/desktop/src/components/BottomMenu.tsx @@ -7,7 +7,6 @@ import type { View } from '../App'; import { settingsV2Enabled } from '../flags'; import { BottomMenuModeSelection } from './BottomMenuModeSelection'; import ModelsBottomBar from './settings_v2/models/bottom_bar/ModelsBottomBar'; -import ToolCount from './ToolCount'; export default function BottomMenu({ hasMessages, @@ -79,8 +78,6 @@ export default function BottomMenu({ {/* Right-side section with ToolCount and Model Selector together */}
- {/* Tool count */} - {/* Model Selector Dropdown */} {settingsV2Enabled ? ( diff --git a/ui/desktop/src/components/ToolCount.tsx b/ui/desktop/src/components/ToolCount.tsx deleted file mode 100644 index a56d10ec..00000000 --- a/ui/desktop/src/components/ToolCount.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import { useState, useEffect } from 'react'; -import { getTools } from '../api'; -import { ExclamationTriangleIcon } from '@radix-ui/react-icons'; -import { Popover, PopoverContent, PopoverTrigger } from './ui/popover'; - -const SUGGESTED_MAX_TOOLS = 24; - -export default function ToolCount() { - const [toolCount, setToolCount] = useState(null); - const [error, setError] = useState(false); - - useEffect(() => { - const fetchTools = async () => { - try { - const response = await getTools(); - if (response.error) { - console.error('failed to get tool count'); - setError(true); - } else { - setToolCount(response.data.length); - } - } catch (err) { - console.error('Error fetching tools:', err); - setError(true); - } - }; - - fetchTools(); - }, []); - - if (error) { - return
; - } - - if (toolCount === null) { - return
...
; - } - - if (toolCount > SUGGESTED_MAX_TOOLS) { - return ( -
- - - - - -
-

- Too many tools can degrade goose's performance. Consider turning unused extensions - off. Tool count: {toolCount} (recommend: {SUGGESTED_MAX_TOOLS}) -

-
-
-
-
- ); - } else { - return
; - } -}