diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 324fc74c8..5f71bc192 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -603,7 +603,9 @@ export function ChatActions(props: { }; const onRecognitionEnd = (finalTranscript: string) => { console.log(finalTranscript); - if (finalTranscript) props.setUserInput(finalTranscript); + if (finalTranscript) { + props.setUserInput((prevInput) => prevInput + finalTranscript); + } if (config.sttConfig.engine !== DEFAULT_STT_ENGINE) setIsTranscription(false); };