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
This commit is contained in:
Research Assistant 2026-05-10 16:10:26 +08:00
parent 5e0e577b77
commit 11b090a69a

View file

@ -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();