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(models): refresh on comfyui-model-downloaded, not just installBundleComplete

purple0eebaee5f943
diff --git a/src/api/discover.ts b/src/api/discover.ts
index aea02c55..e1bda64a 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -262,13 +262,6 @@ export async function installBundleComplete(bundle: ModelBundle): Promise<void>
// sees ComfyUI's rescanned /object_info (the new file). useModels listens for
// this event too (see its effect) so the Installed tab + pickers update.
window.dispatchEvent(new CustomEvent('comfyui-model-downloaded'))
- // Also fire the canonical model-list refresh: the Model Manager's Installed
- // tab and the shared model store (chat + create pickers) listen on
- // 'lu-models-refresh', NOT the comfy-specific event above. Without this a
- // freshly downloaded image/video model showed as installed in Discover but
- // was missing from the Installed tab and unselectable until a manual refresh
- // (d37d7bf5 + neejuh, 2026-06-24, on v2.5.5).
- window.dispatchEvent(new CustomEvent('lu-models-refresh'))
if (errors.length > 0) {
throw new Error(`Bundle install had ${errors.length} issue(s): ${errors.join('; ')}`)