diff --git a/ui/desktop/src/components/ProviderGuard.tsx b/ui/desktop/src/components/ProviderGuard.tsx index 31e525445518..89fb8e5ce13d 100644 --- a/ui/desktop/src/components/ProviderGuard.tsx +++ b/ui/desktop/src/components/ProviderGuard.tsx @@ -8,9 +8,9 @@ import WelcomeGooseLogo from './WelcomeGooseLogo'; import { initializeSystem } from '../utils/providerUtils'; import { toastService } from '../toasts'; import { OllamaSetup } from './OllamaSetup'; -import { checkOllamaStatus } from '../utils/ollamaDetection'; + import { Goose } from './icons/Goose'; -import { OpenRouter, Ollama } from './icons'; +import { OpenRouter } from './icons'; interface ProviderGuardProps { children: React.ReactNode; @@ -23,7 +23,7 @@ export default function ProviderGuard({ children }: ProviderGuardProps) { const [hasProvider, setHasProvider] = useState(false); const [showFirstTimeSetup, setShowFirstTimeSetup] = useState(false); const [showOllamaSetup, setShowOllamaSetup] = useState(false); - const [ollamaDetected, setOllamaDetected] = useState(false); + const [openRouterSetupState, setOpenRouterSetupState] = useState<{ show: boolean; title: string; @@ -194,8 +194,6 @@ export default function ProviderGuard({ children }: ProviderGuardProps) { console.log('ProviderGuard - No provider/model configured'); setShowFirstTimeSetup(true); } - const ollamaStatus = await checkOllamaStatus(); - setOllamaDetected(ollamaStatus.isRunning); } catch (error) { // On error, assume no provider and redirect to welcome console.error('Error checking provider configuration:', error); @@ -209,23 +207,6 @@ export default function ProviderGuard({ children }: ProviderGuardProps) { // eslint-disable-next-line react-hooks/exhaustive-deps }, [read]); - // Poll for Ollama status while the first time setup is shown - useEffect(() => { - if (!showFirstTimeSetup) return; - - const checkOllama = async () => { - const status = await checkOllamaStatus(); - setOllamaDetected(status.isRunning); - }; - - // Check every 3 seconds - const interval = window.setInterval(checkOllama, 3000); - - return () => { - window.clearInterval(interval); - }; - }, [showFirstTimeSetup]); - if ( isChecking && !openRouterSetupState?.show && @@ -428,54 +409,6 @@ export default function ProviderGuard({ children }: ProviderGuardProps) { enter your own keys.
- - {/* Ollama Card - outline style */} -- Advanced: Run AI models locally on your computer. Completely free and private - with no internet required. (Does require significant hardware) -
-