Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

v2.5.0 B1+B2: pin Ollama on detection + persist in BackendSelector

purpleef895cecd0c9
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index 5f8693f2..a0e3893f 100644
--- a/src/components/layout/AppShell.tsx
+++ b/src/components/layout/AppShell.tsx
@@ -498,6 +498,19 @@ export function AppShell() {
})
}
+ // Also auto-(re)enable Ollama when it's detected. The provider defaults
+ // to enabled=true, but a previous session may have disabled it; here we
+ // pin the detected baseUrl and bring it back so models show up in the
+ // Settings → AI Backends list and the chat selector.
+ const detectedOllama = backends.find((b) => b.id === 'ollama')
+ if (detectedOllama) {
+ useProviderStore.getState().setProviderConfig('ollama', {
+ enabled: true,
+ baseUrl: detectedOllama.baseUrl,
+ isLocal: true,
+ })
+ }
+
// Single backend → we're done (already enabled above, or was Ollama).
if (backends.length === 1) return
diff --git a/src/components/onboarding/BackendSelector.tsx b/src/components/onboarding/BackendSelector.tsx
index 949d9fde..130e1311 100644
--- a/src/components/onboarding/BackendSelector.tsx
+++ b/src/components/onboarding/BackendSelector.tsx
@@ -44,7 +44,14 @@ export function BackendSelector({ open, backends, onClose }: Props) {
if (!preset) { dismiss(); return }
if (preset.providerId === 'ollama') {
- // Ollama uses its own provider, already enabled by default
+ // Ollama uses its own provider slot. Default is enabled=true, but pin
+ // the detected baseUrl + (re-)enable so a previously disabled config
+ // reappears in Settings and its models show up in the chat selector.
+ setProviderConfig('ollama', {
+ enabled: true,
+ baseUrl: backend.baseUrl,
+ isLocal: true,
+ })
} else {
setProviderConfig('openai', {
enabled: true,