From de8b3291e43cce5bdbab4d37e0d4b62804e43a16 Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Thu, 19 Mar 2026 11:10:32 +0530 Subject: [PATCH] fix: search showing up for connected account --- .../renderer/src/components/chat-input-with-mentions.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx index afc29b34..0c041351 100644 --- a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx +++ b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx @@ -266,9 +266,13 @@ function ChatInputInner({ return () => window.removeEventListener('models-config-changed', handler) }, [loadModelConfig]) - // Check search tool availability (brave or exa) + // Check search tool availability (brave or exa, or signed-in via gateway) useEffect(() => { const checkSearch = async () => { + if (isRowboatConnected) { + setSearchAvailable(true) + return + } let available = false try { const raw = await window.ipc.invoke('workspace:readFile', { path: 'config/brave-search.json' }) @@ -285,7 +289,7 @@ function ChatInputInner({ setSearchAvailable(available) } checkSearch() - }, [isActive]) + }, [isActive, isRowboatConnected]) const handleModelChange = useCallback(async (key: string) => { const entry = configuredModels.find((m) => `${m.flavor}/${m.model}` === key)