From cd37a9d728fcf75ea7aa8800c3c7f30b09776cec Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 11 Sep 2026 04:55:30 +0200 Subject: [PATCH] fix: the preview page rendered nothing /assistant in the address bar, the preview class on the body, and a blank screen. The app container starts hidden and enterApp is what reveals it; enterPreview declined the login overlay without doing the same, which left a hidden app under a hidden overlay. One line. Verified in a browser: composer, chat view, example prompts and the preview note are all visible and sized, with no page or console errors. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU --- public/js/auth.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/auth.js b/public/js/auth.js index 6fec67f0..975d748d 100644 --- a/public/js/auth.js +++ b/public/js/auth.js @@ -202,6 +202,10 @@ document.addEventListener('DOMContentLoaded', function() { function enterPreview() { document.body.classList.add('assistant-preview'); if (authScreen) authScreen.style.display = 'none'; + // The app container starts hidden and enterApp is what reveals it. Declining + // the overlay without doing the same left a hidden app under a hidden + // overlay — /assistant in the address bar and nothing on the screen. + if (mainApp) mainApp.style.display = 'block'; if (typeof window.activateTab === 'function') window.activateTab('assistant'); }