Skip to content

sessions: Show pinned state in session toolbar - #334957

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
benibenj/agents/session-view-pin-toggle-feature
Sep 7, 2026
Merged

sessions: Show pinned state in session toolbar#334957
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
benibenj/agents/session-view-pin-toggle-feature

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • show the toggled pinned action in the session header navigation group while a session view is pinned
  • keep the pin/unpin action in the overflow menu in both states
  • cover both menu placements and context predicates with focused tests

Validation

  • npm run transpile-client
  • .\scripts\test.bat --run src\vs\sessions\contrib\sessions\test\browser\sessionsActions.test.ts (10 passing)

Keep the pin toggle in the overflow menu while also showing its toggled action in the navigation group for pinned session views.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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 review overview

🟢 Approval recommended

The focused implementation and tests have no unresolved issues.

Review tier: Balanced
Findings: None

What changed in this PR

Shows pinned state in the session toolbar while retaining the overflow pin/unpin action.

Changes:

  • Adds a pinned-only navigation action.
  • Expands tests for menu placement, ordering, and predicates.
File Description
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsActions.ts Adds conditional navigation placement for pinned sessions.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsActions.test.ts Verifies toolbar placements, ordering, and predicates.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 33b6777 into main Sep 7, 2026
34 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/agents/session-view-pin-toggle-feature branch September 7, 2026 19:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.138.0 milestone Sep 7, 2026
@boedysutris-ctrl

boedysutris-ctrl commented Sep 7, 2026 via email

Copy link
Copy Markdown

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.

4 participants