fix: keep web search toggle on for the rest of the chat session

This commit is contained in:
Gagancreates 2026-05-27 19:23:21 +05:30
parent e61f8532bc
commit ef5649a0c7

View file

@ -382,7 +382,8 @@ function ChatInputInner({
controller.textInput.clear()
controller.mentions.clearMentions()
setAttachments([])
setSearchEnabled(false)
// Web search toggle stays on for the rest of the chat session; the user
// turns it off explicitly. (Not persisted across app restarts.)
}, [attachments, canSubmit, controller, message, onSubmit, searchEnabled])
const handleKeyDown = useCallback((e: React.KeyboardEvent) => {