mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-18 21:21:11 +02:00
fix: keep web search toggle on for the rest of the chat session
This commit is contained in:
parent
e61f8532bc
commit
ef5649a0c7
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ function ChatInputInner({
|
||||||
controller.textInput.clear()
|
controller.textInput.clear()
|
||||||
controller.mentions.clearMentions()
|
controller.mentions.clearMentions()
|
||||||
setAttachments([])
|
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])
|
}, [attachments, canSubmit, controller, message, onSubmit, searchEnabled])
|
||||||
|
|
||||||
const handleKeyDown = useCallback((e: React.KeyboardEvent) => {
|
const handleKeyDown = useCallback((e: React.KeyboardEvent) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue