Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(composer): block Enter during composition even when keydown lacks isComposing flag

shanuf2452b5a0560
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index a5f44f7931..5ad1456722 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -496,6 +496,7 @@ const Composer: FC<{
}
const native = event.nativeEvent;
if (
+ isComposingTextRef.current ||
native.isComposing ||
native.keyCode === 229 ||
('which' in native && native.which === 229)