Skip to content

Agents window: Pinned section collapse state is not preserved after reload #345593

Description

Follow-up to #345233 (which expands Pinned on the first pin). That part works; this is about the collapsed state surviving a reload.

  • VS Code: 1.145.0-insider (commit 6771084)
  • OS: macOS arm64
  • Fresh profile: code --user-data-dir ~/tpi-pin-data --agents, two sessions A and B in one folder
tpi.failing.mov

Steps

  1. Right-click A > Pin. Pinned appears expanded with A visible (works).
  2. Collapse the Pinned section, then pin B. Pinned stays collapsed (works).
  3. 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

  1. added
    bug
    sessions-list
    on Nov 2, 2026
  2. alexdima commented on Nov 9, 2026

    @alexdima
    Member

    I can still reproduce this on Insiders 1.146.0 (macOS):

    1. Two sessions in one folder; right-click one > Pin. Pinned shows up expanded.
    2. Collapse Pinned, then pin the second session. Pinned stays collapsed.
    3. Developer: Reload Window. Pinned is expanded again, with both sessions showing.

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-windowbugsessions-list

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions