diff --git a/src/agentkit/server/static/index.html b/src/agentkit/server/static/index.html
index a1f84a6..0267cd5 100644
--- a/src/agentkit/server/static/index.html
+++ b/src/agentkit/server/static/index.html
@@ -211,7 +211,7 @@ html,body{height:100%;font-family:var(--font);background:var(--bg);color:var(--t
@@ -466,10 +466,9 @@ async function sendMessage() {
updateSendBtn();
}
-let inputComposing = false;
-
function handleKey(e) {
- if (e.key === 'Enter' && !e.shiftKey && !inputComposing) {
+ // e.isComposing is true during IME composition — don't submit then
+ if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) {
e.preventDefault();
sendMessage();
}