From 8505e9d6691db5c9336703e4ce3ed9aabe9ff8e0 Mon Sep 17 00:00:00 2001 From: brooklyn! Date: Thu, 11 Jun 2026 13:03:23 -0500 Subject: [PATCH] fix(desktop): disable spellcheck on composer inputs (#44415) Turn off browser spellcheck, autocorrect, and autocomplete on the main chat composer and message-edit composer so code, paths, and slash commands are not flagged or altered. --- apps/desktop/src/app/chat/composer/index.tsx | 12 +++++++++-- .../src/components/assistant-ui/thread.tsx | 21 ++++++++++++++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/app/chat/composer/index.tsx b/apps/desktop/src/app/chat/composer/index.tsx index c18313a7386..94e80d6bec3 100644 --- a/apps/desktop/src/app/chat/composer/index.tsx +++ b/apps/desktop/src/app/chat/composer/index.tsx @@ -1630,7 +1630,7 @@ export function ChatBar({ onPaste={handlePaste} ref={editorRef} role="textbox" - spellCheck="true" + spellCheck={false} suppressContentEditableWarning /> {/* assistant-ui requires ComposerPrimitive.Input somewhere in the tree @@ -1649,7 +1649,15 @@ export function ChatBar({ `asChild` swaps TextareaAutosize for a Radix Slot wrapping our plain