From 4a7da10ca88043a6a1b9f187980ba5c99a9b58ee Mon Sep 17 00:00:00 2001 From: yiling Date: Sat, 11 Jul 2026 10:55:01 +0800 Subject: [PATCH] fix(chatbot): prevent Enter from sending message during IME composition --- packages/webui/components/chatbot-sidebar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webui/components/chatbot-sidebar.tsx b/packages/webui/components/chatbot-sidebar.tsx index 1ea59014..73ddabeb 100644 --- a/packages/webui/components/chatbot-sidebar.tsx +++ b/packages/webui/components/chatbot-sidebar.tsx @@ -61,6 +61,8 @@ export function ChatbotSidebar({ projectId, contextAssetId }: ChatbotSidebarProp } const handleKeyDown = (e: React.KeyboardEvent) => { + if (e.nativeEvent.isComposing) return + if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault() handleSend()