Skip to content

Sessions: refactor toggle action and unread badge#306272

Merged
mrleemurray merged 6 commits intomainfrom
mrleemurray/sessions-toggle-update
Mar 30, 2026
Merged

Sessions: refactor toggle action and unread badge#306272
mrleemurray merged 6 commits intomainfrom
mrleemurray/sessions-toggle-update

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented Mar 30, 2026

Improve the sidebar by adding a toggle action and an unread badge that updates based on session state changes. Optimize badge updates for better performance and user experience.

Screen.Recording.2026-03-30.at.10.27.03.mov

mrleemurray and others added 3 commits March 30, 2026 10:26
…ate changes

Co-authored-by: Copilot <copilot@github.com>
…nd visibility changes

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings March 30, 2026 09:37
@mrleemurray mrleemurray self-assigned this Mar 30, 2026
@vs-code-engineering vs-code-engineering bot added this to the Backlog milestone Mar 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the Agent Sessions window’s sidebar visibility control by moving it to a dedicated toggle action and adding a titlebar unread-count badge that reacts to session state changes.

Changes:

  • Adds a workbench.action.agentToggleSidebarVisibility action entry to the sessions window titlebar left layout (with toggled state).
  • Introduces a custom ActionViewItem to render an unread-count badge on the sidebar toggle action and update it via observable-driven state tracking.
  • Removes the prior bespoke sidebar title-area toggle button and its related CSS.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.ts Adds SidebarToggleActionViewItem with unread badge + registers it for the sidebar toggle action; removes old in-widget unread/count button logic.
src/vs/sessions/contrib/sessions/browser/media/sessionsTitleBarWidget.css Adds CSS for the unread badge positioning/styling on the titlebar toggle action.
src/vs/sessions/browser/parts/sidebarPart.ts Removes the standalone sidebar title-area “hide sidebar” button implementation.
src/vs/sessions/browser/parts/media/sidebarPart.css Removes CSS for the removed standalone sidebar button and updates the no-drag selector.
src/vs/sessions/browser/layoutActions.ts Updates sidebar toggle action icon, toggled state, and contributes it to Menus.TitleBarLeftLayout.

mrleemurray and others added 3 commits March 30, 2026 10:44
…t.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ctionViewItem

Co-authored-by: Copilot <copilot@github.com>
…nread session count

Co-authored-by: Copilot <copilot@github.com>
@mrleemurray mrleemurray marked this pull request as ready for review March 30, 2026 10:00
@mrleemurray mrleemurray merged commit eda966e into main Mar 30, 2026
28 of 29 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/sessions-toggle-update branch March 30, 2026 10:45
mrleemurray added a commit that referenced this pull request Mar 30, 2026
…-update

Sessions: refactor toggle action and unread badge
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