From c51d25696b14647ce6b484a0dbaba5bbcf7ebc39 Mon Sep 17 00:00:00 2001 From: DemonGatanjieu <207458273+DemonGatanjieu@users.noreply.github.com> Date: Sun, 11 Oct 2026 00:35:36 +0800 Subject: [PATCH] Models page no longer empty after the browser sat closed After 90 seconds closed the model grid is released. Reopened onto Current node or Prompts (a node selected on the canvas), nothing redrew it, so pressing Models showed an empty page. Showing the models now redraws an empty grid. Co-Authored-By: Claude Opus 5.5 --- web/modules/ui_shell_nav.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/modules/ui_shell_nav.js b/web/modules/ui_shell_nav.js index 6164083..da46a6a 100644 --- a/web/modules/ui_shell_nav.js +++ b/web/modules/ui_shell_nav.js @@ -153,6 +153,8 @@ export function installShellNavigation(owner, { container, rail, listToggle, tit const showModels = () => { owner.grid.style.display = 'grid'; + // Emptied after the browser sat closed (browser.js close()); reopened onto another page, nothing redrew it. + if (!owner.grid.childElementCount && owner.foldersData) owner.loadModels(); if (owner.detailPanel.innerHTML !== '') { owner.stopMediaInContainer(owner.detailPanel); owner.detailPanel.innerHTML = '';