From 028495841de5fdf6009f4d1b9583d5965701552f Mon Sep 17 00:00:00 2001 From: dolphin <78075021@qq.com> Date: Fri, 28 Jun 2024 20:11:34 +0800 Subject: [PATCH] fix: Wait for user input in autogen --- src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx index 60333d8ab..09ef03f59 100644 --- a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx +++ b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx @@ -148,7 +148,7 @@ export default function ChatInput({ clear, form, stop, questions, inputForm, wsU handleWsMessage(data) // 群聊@自己时,开启input if (['end', 'end_cover'].includes(data.type) && data.receiver?.is_self) { - setInputLock({ locked: true, reason: '' }) + setInputLock({ locked: false, reason: '' }) } } ws.onclose = (event) => {