You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agents window: Pinned section collapse state is not preserved after reload #345593
Fresh profile: code --user-data-dir ~/tpi-pin-data --agents, two sessions A and B in one folder
tpi.failing.mov
Steps
Right-click A > Pin. Pinned appears expanded with A visible (works).
Collapse the Pinned section, then pin B. Pinned stays collapsed (works).
Run "Developer: Reload Window".
Expected
Pinned is still collapsed after the reload, since I collapsed it on purpose.
Actual
Pinned comes back expanded.
Notes
In the Agents profile storage (User/profiles/builtin/agents/globalStorage/state.vscdb), after the reload sessionsListControl.sectionCollapseState is {"workspace:file:///.../tpi-harness":false,"pinned":false} while sessionsListControl.pinnedSessions lists both sessions. So the collapsed value ("pinned": true) is either never saved or gets overwritten with false.
Related: #326026 (different symptom: Pinned missing until reload).
Activity
alexdima commentedon Nov 9, 2026
I can still reproduce this on Insiders 1.146.0 (macOS):
The fix is in #346690, which isn't merged yet.
345593-pinned-collapse-reload.mp4
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).