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 <noreply@anthropic.com>
This commit is contained in:
DemonGatanjieu
2026-10-11 00:35:36 +08:00
co-authored by Claude Opus 5.5
parent 0f0c98270f
commit c51d25696b
+2
View File
@@ -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 = '';