Skip to content

sessions: make the Session Activity Bar fill its column beside the side pane - #346492

Merged
Sandeep Somavarapu (sandy081) merged 13 commits into
mainfrom
sandy081/agents/session-activity-bar-full-column
Nov 6, 2026
Merged

Sandeep Somavarapu (sandy081) merged 13 commits into
mainfrom
sandy081/agents/session-activity-bar-full-column

Conversation

@sandy081

@sandy081 Sandeep Somavarapu (sandy081) commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #346320. In the main window, the Session Activity Bar now looks and behaves like a real activity bar beside the side pane.

What changed

  • Full column: the strip fills its column from top to bottom, so the whole vertical column is the activity bar, framed like the cards beside it. Before, it was only as tall as its entries.
  • Shared activity bar component: a new MenuActivityBar in src/vs/workbench/browser/parts/activitybar/ renders the icon-only entries of a menu as a vertical activity bar. It is sized and colored like the Modern UI workbench activity bar at both layout densities: 36px entries with 24px icons, an 8px lane and gap at the default density and 4px at the compact one, and the modern activity bar hover and active colors (outlines in high contrast). It supports activity badges and the context menu anywhere on the bar. The Session Activity Bar is its first consumer: full size in the Agents window's column, slim beside a chat. The workbench activity bar can adopt it later.
  • Size menu (Session Activity Bar only): the bar's context menu has a Size submenu with Normal and Compact. Normal follows the layout density as above. Compact keeps the original small strip at every density: 24px entries with 16px icons and a 30px strip, so the column is narrower. The choice is stored per profile (not a setting), and Compact is the default. The bar floating beside a chat is always compact.
  • Even gaps: the column now includes the gap between cards, so the gap between the activity bar and the side pane, or the chat while the side pane is closed, matches the gaps between the other cards. The width follows the layout density: Compact has no gap.
  • Context menu anywhere: right-clicking anywhere on the bar shows the same menu as on an entry (the entries to show or hide, Show Layout Actions and Hide Session Activity Bar), without that entry's own Configure Keybinding and Hide actions. As on an entry, the last entry still showing can't be hidden.
  • macOS window corner: while the column shows, it is the card in the window's bottom-right corner (beside the panel too), so it follows the window's rounded corner instead of being clipped. The editor, panel and chat no longer take that corner while the column shows.

Chat windows and strips docked inside a chat are unchanged.

Validation

  • pnpm run typecheck-client: passed
  • ./scripts/test.sh --runGlob "vs/sessions/**/*.test.js": passed (7,940 passing). New and updated tests cover the Size choice and the strip filling the column after the gap, the column's width, the context menu on an entry and elsewhere on the strip, and the macOS corner rules.
  • ./scripts/test.sh --run src/vs/workbench/test/browser/parts/activitybar/menuActivityBar.test.ts --run src/vs/workbench/test/browser/parts/activitybar/activitybarPart.test.ts: passed. The new test checks the component's sizes at both densities and in the Compact size.
  • pnpm run valid-layers-check: passed.
  • pnpm run eslint and pnpm run stylelint on the changed files, and hygiene via the commit hook: passed.
  • Live check in Code OSS from this branch, against an editor window of the same build, at the default and compact layout densities. Measured from the DOM in both windows: bar width, entry size, icon size, gap between entries, the first entry's inset, the hover and active highlight box, and hover and active colors all match. Also checked the separator before Terminal and the gap beside the side pane, or the chat while the side pane is closed. After adding Size: opened the context menu, chose Size › Compact, and measured a 30px strip with 24px entries and 16px icons at both layout densities.

Two Agent Host picker tests in agentHostSessionConfigPicker.test.ts fail in CI on this PR. They fail the same way on a clean main and this PR doesn't touch them.

@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.146.0 milestone Nov 6, 2026
Copilot AI balanced review requested due to automatic review settings November 6, 2026 08:45

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.

🟢 Approval recommended

No active review issues were identified for the Session Activity Bar layout change.

No open issues 🎉

What changed in this PR

Completes the main-window Session Activity Bar column layout introduced in #346320 by making the strip fill its column rather than sizing to its entries.

Changes:

  • Stretches the docked strip across the full column, extending its card styling and context-menu area.
  • Adds a regression test for full-column bounds and right-click behavior near the bottom.
  • Leaves chat-window and in-chat strips unchanged.
File Description
src/​vs/​sessions/​test/​browser/​sessionActivityBar.test.ts Tests full-column sizing and context-menu access near the strip’s bottom.
src/​vs/​sessions/​browser/​parts/​media/​sessionActivityBar.css Applies inset: 0 to the docked strip in the main-window column.

Review effort: Balanced

@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as draft November 6, 2026 08:54
auto-merge was automatically disabled November 6, 2026 08:54

Pull request was converted to draft

…on-activity-bar-full-column

# Conflicts:
#	src/vs/workbench/contrib/sessions/browser/parts/sessionActivityBar.ts
#	src/vs/workbench/contrib/sessions/browser/parts/sessionActivityBarHost.ts
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 90ca413d Current: 6625d807

Changed (15)

sessions/sessionActivityBar/sessionActivityBar/Narrow/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/WorkspaceChat/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/NearlyWide/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/Wide/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/SplitGroup/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/RulerTimeline/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/RulerTimelineWide/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/ExternalSessionBanner/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/ExternalSessionBannerWide/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/ChatWithoutWorkspace/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/WithoutLayoutActions/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/NewChanges/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/GitHubReferences/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/MultipleGitHubReferences/Light
Before After
before after
sessions/sessionActivityBar/sessionActivityBar/CheckedGitHubReferences/Light
Before After
before after

@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as ready for review November 6, 2026 09:53
@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as draft November 6, 2026 10:04
auto-merge was automatically disabled November 6, 2026 10:04

Pull request was converted to draft

…Bar on it

MenuActivityBar renders the icon-only entries of a menu as a vertical activity bar, sized and colored like the Modern UI workbench activity bar at both layout densities, with activity badges and the context menu anywhere on the bar. The Session Activity Bar is its first consumer: full size in the Agents window's column, slim beside a chat.

Co-authored-by: Copilot <[email protected]>
…highlight and colors

Lay out its entries in a flex column so the gap between them applies, inset the hover and active highlight on every side, show the separator between groups, follow a theme's activity bar active background, and keep the bar's width fixed in the Agents window's column.

Co-authored-by: Copilot <[email protected]>
The Session Activity Bar's context menu gets a Size submenu (Default, Compact).
Compact restores the original small strip (24px entries, 16px icons) at every
layout density. The choice is stored per profile, not as a setting. The bar
floating beside a chat is always compact.

Co-authored-by: Copilot <[email protected]>
Compact is now the default, so the other size is called Normal.

Co-authored-by: Copilot <[email protected]>
@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as ready for review November 6, 2026 11:27
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/workbench/contrib/sessions/common/contextkeys.ts

@sandy081
Sandeep Somavarapu (sandy081) merged commit 21f769d into main Nov 6, 2026
51 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/session-activity-bar-full-column branch November 6, 2026 11:46
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