Skip to content

sessions: Show close actions in side-by-side headers - #339175

Merged
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/bug-fix-general-issue-19f614e7
Oct 1, 2026
Merged

Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/bug-fix-general-issue-19f614e7

Conversation

@sandy081

Copy link
Copy Markdown
Member

Adds a visible close action beside the overflow menu when sessions or chats are opened side by side.

  • Session headers close the represented session when multiple sessions are visible.
  • Chat-group headers close the represented side-by-side chat group.
  • Header close actions use the regular close glyph, while compact tab close actions retain the small glyph.
  • Scoped context keys keep session and chat close actions mutually exclusive and targeting the correct surface.

Validation:

  • npm run compile — passed
  • npm run hygiene — passed
  • npm run typecheck-client — passed
  • npm run transpile-client — passed
  • Focused Electron unit tests were attempted, but the Electron test process segfaulted during startup before executing tests.

Expose the existing close commands beside the overflow menu for multi-session and split-chat layouts, while preserving the compact close glyph on tabs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 20:44
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.141.0 milestone Oct 1, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/browser/parts/chatGroupView.ts
  • src/vs/sessions/browser/parts/sessionHeader.ts

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

🟡 Changes recommended

The new icon-only close actions need descriptive accessible labels distinguishing sessions from chat groups.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds contextual close buttons to side-by-side session and chat-group headers.

Changes:

  • Adds scoped context state to distinguish session and chat-group toolbars.
  • Contributes regular-glyph close actions to header toolbars.
  • Extends tests for visibility, targeting, and icon selection.
File Description
src/​vs/​sessions/​common/​contextkeys.ts Defines session-toolbar context state.
src/​vs/​sessions/​browser/​parts/​sessionHeader.ts Marks session-level toolbars.
src/​vs/​sessions/​browser/​parts/​chatGroupView.ts Scopes toolbar state per chat group.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsActions.ts Adds visible header close actions.
src/​vs/​sessions/​test/​browser/​chatGroupsView.test.ts Tests toolbar context behavior.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsActions.test.ts Tests action placement and icons.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/sessions/browser/sessionsActions.ts
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: d6c9edb7 Current: e333e43b

Changed (6)

sessions/grid/sessionsGrid/SideBySide/Light
Before After
before after
sessions/grid/sessionsGrid/NestedSplits/Light
Before After
before after
sessions/grid/sessionsGrid/Maximized/Light
Before After
before after
sessions/grid/sessionsGrid/MultipleChats/Light
Before After
before after
sessions/accountMenu/WeeklyLimitOnly/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/DiscoverPluginsLoadingMore/Light
Before After
before after

3 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Give icon-only close actions surface-specific accessible names and make menu tests deterministic across Browser and Electron-Unit runners.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sandy081
Sandeep Somavarapu (sandy081) merged commit 92f7f39 into main Oct 1, 2026
55 of 56 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/bug-fix-general-issue-19f614e7 branch October 1, 2026 21:27
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.

3 participants