Spaces:
Configuration error
Configuration error
fix(viewer): fix blank page on load and loadFolders circular reference
Browse files3492 unmodified lines3493349434953496349734983499350035013496349734983499350082 unmodified lines35833584358535863587359035913592359335943595359635973598359936003588358935903591359235933594359535963597359835993600360136023492 unmodified lines async function runReplayImport() { return; }
document.addEventListener('keydown', function(e) { // Replay tab removed — keyboard shortcuts are no-ops if (false) { if (e.target && (e.target.tagName === 'INPUT' || e.target.tagName === 'SELECT' || e.target.tagName === 'TEXTAREA')) return; if (e.key === ' ') { e.preventDefault(); toggleReplayPlay(); } else if (e.key === 'ArrowLeft') { e.preventDefault(); stepReplay(-1); } else if (e.key === 'ArrowRight') { e.preventDefault(); stepReplay(1); } // Replay keyboard shortcuts removed — replay tab no longer exists if (false) { return; } });
switchTab(tabFromRoute(), { replaceRoute: true });82 unmodified lines el.insertAdjacentElement('afterbegin', card); }
// Hook into existing folder load to check empty state (B4 onboarding) // Uses a closure over the original loadFolders instead of hoisted re-declaration // Hook into existing folder load to check empty state var _origLoadFolders = loadFolders; async function loadFolders() { await _origLoadFolders.apply(this, arguments); // After load, check health for onboarding try { var h = await apiFetch('/agentmemory/health'); var f = state.flagsConfig; maybeShowOnboarding(h, f); } catch(_) {} } (function() { var _origLoadFolders = loadFolders; loadFolders = async function() { await _origLoadFolders.apply(this, arguments); // After load, check health for onboarding card try { var h = await apiFetchRaw('/agentmemory/health'); var f = state.flagsConfig; maybeShowOnboarding(h, f); } catch(_) {} }; })();
// ========================================================================== // B5 — MCP Tool Tester tabsrc/viewer/index.html+16-17