mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-03 04:12:38 +02:00
fix: search showing up for connected account
This commit is contained in:
parent
a10e97110d
commit
de8b3291e4
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue