diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 1ed87848..c7a8e9ba 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -965,10 +965,7 @@ function _Chat() { const clientConfig = useMemo(() => getClientConfig(), []); - const location = useLocation(); - const isChat = location.pathname === Path.Chat; - - const autoFocus = !isMobileScreen || isChat; // only focus in chat page + const autoFocus = !isMobileScreen; // wont auto focus on mobile screen const showMaxIcon = !isMobileScreen && !clientConfig?.isApp; useCommand({