From 11b090a69ad2e38e36730951793a4e866ffdbcf5 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Sun, 10 May 2026 16:10:26 +0800 Subject: [PATCH] fix(dashboard): reset expanded state on mode switch - Clear _techDetailsExpanded when switching modes to prevent stale state - Ensures technical details starts collapsed for each new paper --- paperforge/plugin/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/paperforge/plugin/main.js b/paperforge/plugin/main.js index a9571404..bbb69b5f 100644 --- a/paperforge/plugin/main.js +++ b/paperforge/plugin/main.js @@ -1177,6 +1177,7 @@ class PaperForgeStatusView extends ItemView { this._currentMode = mode; this._currentFilePath = filePath; + this._techDetailsExpanded = false; // reset disclosure state on mode switch // Clear existing content (D-06) this._contentEl.empty();