Spaces:
Configuration error
Configuration error
fix(viewer): fix blank page on load and loadFolders circular reference
Browse files3492 unmodified lines34933494349534963497349834993500350135023503350482 unmodified lines358735883589359035913592359335943595359635973598359936003601360236033492 unmodified linesasync function runReplayImport() { return; }document.addEventListener('keydown', function(e) {// Replay tab removed — keyboard shortcuts are no-opsif (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); }});switchTab(tabFromRoute(), { replaceRoute: true });82 unmodified linesel.insertAdjacentElement('afterbegin', card);}// Hook into existing folder load to check empty statevar _origLoadFolders = loadFolders;async function loadFolders() {await _origLoadFolders.apply(this, arguments);// After load, check health for onboardingtry {var h = await apiFetch('/agentmemory/health');var f = state.flagsConfig;maybeShowOnboarding(h, f);} catch(_) {}}// ==========================================================================// B5 — MCP Tool Tester tab3492 unmodified lines3493349434953496349734983499350082 unmodified lines358335843585358635873588358935903591359235933594359535963597359835993600360136023492 unmodified linesasync function runReplayImport() { return; }document.addEventListener('keydown', function(e) {// Replay keyboard shortcuts removed — replay tab no longer existsif (false) { return; }});switchTab(tabFromRoute(), { replaceRoute: true });82 unmodified linesel.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(function() {var _origLoadFolders = loadFolders;loadFolders = async function() {await _origLoadFolders.apply(this, arguments);// After load, check health for onboarding cardtry {var h = await apiFetchRaw('/agentmemory/health');var f = state.flagsConfig;maybeShowOnboarding(h, f);} catch(_) {}};})();// ==========================================================================// B5 — MCP Tool Tester tab
src/viewer/index.html+16-17