From 3655ef8a7e86035d222331e14f69768c57fcc7dd Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 24 Jul 2026 09:43:37 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20TOC=20panel=20never=20auto-opens=20on=20?= =?UTF-8?q?login=20=E2=80=94=20always=20starts=20closed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed localStorage restore of obsigate-right-sidebar-visible on init - TOC only opens when user clicks the TOC button in a document - Width preference still restored from localStorage --- frontend/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index d52a790..15504ab 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -1099,13 +1099,9 @@ }, loadState() { - const savedVisible = localStorage.getItem("obsigate-right-sidebar-visible"); + // Always start closed on login/refresh — user must explicitly toggle TOC const savedWidth = localStorage.getItem("obsigate-right-sidebar-width"); - if (savedVisible !== null) { - rightSidebarVisible = savedVisible === "true"; - } - if (savedWidth) { rightSidebarWidth = parseInt(savedWidth) || 280; }