diff --git a/ui/components/EmptyChatMessageInput.tsx b/ui/components/EmptyChatMessageInput.tsx index 845bed9..42ad917 100644 --- a/ui/components/EmptyChatMessageInput.tsx +++ b/ui/components/EmptyChatMessageInput.tsx @@ -40,6 +40,8 @@ const EmptyChatMessageInput = ({ document.addEventListener('keydown', handleKeyDown); + inputRef.current?.focus(); + return () => { document.removeEventListener('keydown', handleKeyDown); };