Skip to content

Commit cb68ed3

Browse files
committed
fix(home): let Search be chosen inside a chat now that the mode lives in the URL
1 parent b9e2986 commit cb68ed3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,6 @@ export function Home({ chatId, userName, userId }: HomeProps) {
544544
setSearchQuery('')
545545
handleSubmit(prompt, undefined, undefined, 'assistant')
546546
}
547-
/**
548-
* A chat that already exists never opens in Search: its transcript is a
549-
* conversation, and search results never join it. Build and Assistant both
550-
* carry over, so a follow-up stays grounded in the sources.
551-
*/
552-
useEffect(() => {
553-
if (chatId && composerMode === 'search') void setComposerMode('build')
554-
}, [chatId, composerMode, setComposerMode])
555547
const showSearchResults = composerMode === 'search' && searchQuery.trim().length > 0
556548
const searchResults = showSearchResults ? (
557549
<KnowledgeSearchResults

0 commit comments

Comments
 (0)