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.

fix(#3): re-probe ComfyUI on every empty-mode (re)entry, not just first mount

purple0aec78982083
diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsx
index 3a98871e..3ec87ccb 100644
--- a/src/components/models/ModelManager.tsx
+++ b/src/components/models/ModelManager.tsx
@@ -101,6 +101,11 @@ export function ModelManager() {
useEffect(() => {
if (!(tab === 'installed' && imageOrVideo && filteredModels.length === 0)) return
let alive = true
+ // Reset to "probing" on every (re)check — e.g. switching image<->video, or
+ // re-entering an empty mode after ComfyUI went down. Without this the prior
+ // resolved value lingers and briefly shows the wrong empty state before the
+ // fresh probe resolves; null makes it show "Checking ComfyUI..." each time.
+ setComfyReachable(null)
checkComfyConnection()
.then((ok) => { if (alive) setComfyReachable(ok) })
.catch(() => { if (alive) setComfyReachable(false) })