Skip to content

Fix Pinned section collapse state after Agents window reload - #346690

Open
Brandon Connell (bconnell) wants to merge 6 commits into
microsoft:mainfrom
bconnell:fix/345593-preserve-pinned-collapse
Open

Brandon Connell (bconnell) wants to merge 6 commits into
microsoft:mainfrom
bconnell:fix/345593-preserve-pinned-collapse

Conversation

@bconnell

Copy link
Copy Markdown

Summary

Fixes #345593.

Preserves the user's saved Pinned section collapse state when
restoring the active session after reloading the Agents window.

Automatic selection restoration no longer expands a section
that the user intentionally collapsed.

Explicit reveal operations continue to expand sections as expected.
Focus handling avoids targeting hidden session rows.

Validation

  • Git integrity and whitespace checks passed.
  • VS Code code hygiene passed.
  • ESLint passed for all three changed files.
  • Client compilation passed.
  • 459 Sessions List browser tests passed.
  • Native dependency compilation passed.
  • Built-in extension and Copilot compilation passed.
  • Manual reproduction passed in the Agents development window:
    pinned A, collapsed Pinned, pinned B, reloaded the window,
    and confirmed Pinned remained collapsed.
  • Full client TypeScript type check was not run.

AI Assistance

Implementation was developed with AI assistance and manually
validated against the reported behavior and regression tests.

Copilot AI balanced review requested due to automatic review settings November 6, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@bconnell

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants