Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(ui): prevent chat submit during IME composition
Naiyuan Qing7e5bc7b7ae61
diff --git a/packages/ui/src/components/chat-input.tsx b/packages/ui/src/components/chat-input.tsxindex 16c25cc9bf..9c9a2b0592 100644--- a/packages/ui/src/components/chat-input.tsx+++ b/packages/ui/src/components/chat-input.tsx@@ -33,7 +33,7 @@ export function ChatInput({ onSubmit, disabled }: ChatInputProps) {e.target.style.height = `${Math.min(e.target.scrollHeight, 200)}px`;}}onKeyDown={(e) => {- if (e.key === "Enter" && !e.shiftKey) {+ if (e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing) {e.preventDefault();handleSubmit();}