From e1fc3882e3714b021ca78a9db69bfe8ff7198f0a Mon Sep 17 00:00:00 2001 From: Leonid <127580858+bashrusakh@users.noreply.github.com> Date: Tue, 14 Jul 2026 22:27:48 +1100 Subject: [PATCH] fix(chat): restore editor font size styling in chat input (#2199) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 5c6546245 removed the editorFontSize reading and inline font-size styling from ChatInput, calling it 'unused'. However this code was the core of the editor font size feature (feat/e0229917f) — it applies the user's chosen font size to the chat input textarea. Without it, changing Settings > Appearance > Editor font size has no effect on the chat input textarea. The CodeMirror editor (FilesView, PlanView) was unaffected because its font size path was not touched. This reverts the ChatInput portion of 5c6546245, restoring: - useUIStore selector for editorFontSize - inline fontSize style on the textarea element Co-authored-by: bashrusakh --- packages/ui/src/components/chat/ChatInput.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index dfd79904..183df1ee 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -1128,6 +1128,7 @@ const ChatInputComponent: React.FC = ({ onOpenSettings, scrollTo const inputBarOffset = useUIStore((state) => state.inputBarOffset); const persistChatDraft = useUIStore((state) => state.persistChatDraft); const inputSpellcheckEnabled = useUIStore((state) => state.inputSpellcheckEnabled); + const editorFontSize = useUIStore((state) => state.editorFontSize); const isExpandedInput = useUIStore((state) => state.isExpandedInput); const setExpandedInput = useUIStore((state) => state.setExpandedInput); const setTimelineDialogOpen = useUIStore((state) => state.setTimelineDialogOpen); @@ -5311,6 +5312,7 @@ const ChatInputComponent: React.FC = ({ onOpenSettings, scrollTo maxHeight: !isComposerExpanded && textareaSize ? `${textareaSize.maxHeight}px` : undefined, borderTopLeftRadius: chatInputRadius, borderTopRightRadius: chatInputRadius, + fontSize: `${editorFontSize}px`, }} rows={1} />