diff --git a/src/components/GlobalChatPane.tsx b/src/components/GlobalChatPane.tsx index 4f1ca611..7fa59de5 100644 --- a/src/components/GlobalChatPane.tsx +++ b/src/components/GlobalChatPane.tsx @@ -1,5 +1,6 @@ import { useState, useRef, useEffect, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; +import { useLocation } from 'react-router-dom'; import { X, Trash2, Copy, Check, ChevronDown, ArrowUp, Square, Loader2 } from 'lucide-react'; import { Streamdown } from 'streamdown'; import { Button } from '@/components/ui/button'; @@ -95,6 +96,7 @@ export function GlobalChatPane() { const { config } = useAppContext(); const { settings } = useAISettings(); const isMobile = useIsMobile(); + const location = useLocation(); const [input, setInput] = useState(''); const [showScrollToBottom, setShowScrollToBottom] = useState(false); @@ -191,6 +193,11 @@ export function GlobalChatPane() { return null; } + // Don't render on settings pages + if (location.pathname.startsWith('/settings')) { + return null; + } + const hasProviders = settings.providers.length > 0; // Mobile: Full screen drawer from bottom