Skip to content

sessions: rename the Session Toolbar to the Session Activity Bar and move the layout toggles into it - #342039

Merged
Sandeep Somavarapu (sandy081) merged 6 commits into
mainfrom
sandy081/agents/session-activity-bar
Oct 16, 2026
Merged

Sandeep Somavarapu (sandy081) merged 6 commits into
mainfrom
sandy081/agents/session-activity-bar

Conversation

@sandy081

@sandy081 Sandeep Somavarapu (sandy081) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #341996 (merged).

Changes

  • Rename. The Session Toolbar is now the Session Activity Bar in code, CSS, menus, the toggle command, display names and the setting:
    • Setting: sessions.showSessionToolbar → sessions.showSessionActivityBar. A configuration migration carries an existing value over unless the new key is already set.
    • Command: workbench.action.agentSessions.toggleSessionActivityBar.
    • Files: sessionActivityBar.ts and .css, plus the test and fixture.
    • Unrelated "session toolbar" names that refer to the session header toolbar are unchanged, e.g. sessionToolbarShowsSession.
  • Layout actions in the activity bar. These are controlled by a new setting, sessions.sessionActivityBar.showLayoutActions. It is off by default and has a Show Layout Actions toggle in the activity bar's right-click menu (also available as a command). While both settings are on in the desktop layout:
    • Toggle Side Panel and Show/Hide Panel leave the title bar.
    • The activity bar reads: Toggle Side Panel, separator, tab entries, separator, Show/Hide Panel.
    • It renders every menu group, ordered by SessionActivityBarGroup (1_sidePanel, 2_tabs, 3_panel), with a vertical-strip separator between groups.
    • When either setting is off, and in the phone layout, the toggles stay in the title bar.
    • A shared SessionActivityBarLayoutActionsContext expression drives both the title-bar and the activity-bar when clauses.
  • Always shown. The activity bar now also shows in the new-session view (including while a session is being prepared) and in the new-chat view, with the same even content inset as existing chats. This reverses the gating from sessions: show the Session Toolbar only beside existing chats #341912. The activity bar toggle is back in the new-session view's background context menu.
  • DESKTOP.md, the accessibility help text and the setting description are updated.

Validation

  • npx tsc --noEmit -p src/tsconfig.json --skipLibCheck: passed.
  • ./scripts/test.sh --runGlob "vs/sessions/**/*.test.js": 7051 passing. 3 failures in Open Agent Host State File are unrelated; they depend on the local home directory and this PR doesn't touch them.
  • New and updated tests:
    • Group order and separators in the activity bar.
    • The Show Layout Actions context menu toggle.
    • Panel and side panel toggle when clauses in the title bar and the activity bar.
    • Setting migration.
    • Activity bar shown in the new-session and new-chat views.
    • Background-menu toggle in the new-session view.
  • npm run eslint -- <changed files>, npm run stylelint, hygiene and npm run valid-layers-check: passed.
  • Component fixtures sessions/sessionActivityBar/* render without errors and now frame the tabs with the layout toggles; a new WithoutLayoutActions fixture shows the tabs alone.
  • Locked-in sessions/* CI screenshots render the same as on the base branch.

@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.143.0 milestone Oct 16, 2026
Base automatically changed from sandy081/agents/session-toolbar-even-spacing to main October 16, 2026 11:38
Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:39
…move the layout toggles into it

- Rename the Session Toolbar to the Session Activity Bar across code, CSS, menus, the command, display names, and the setting (`sessions.showSessionToolbar` -> `sessions.showSessionActivityBar`, with a configuration migration).
- While the activity bar is enabled in the desktop layout, Show/Hide Panel and Toggle Side Panel leave the title bar and show in the activity bar, after a separator below the tab entries.
- Show the activity bar in every chat view, including the new-session view (and while a session is being prepared) and the new-chat view, with the same even content inset.

Co-authored-by: Copilot <[email protected]>
… behind a setting

- Order the activity bar as Toggle Side Panel, separator, tab entries, separator, Toggle Panel, using explicit `SessionActivityBarGroup` groups.
- Add `sessions.sessionActivityBar.showLayoutActions` (on by default outside Stable); the toggles leave the title bar only while both it and the activity bar are on.
- Add a Show Layout Actions toggle to the activity bar's context menu and a command palette command.

Co-authored-by: Copilot <[email protected]>
@sandy081
Sandeep Somavarapu (sandy081) force-pushed the sandy081/agents/session-activity-bar branch from e5be996 to 7673344 Compare October 16, 2026 11:43
@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as ready for review October 16, 2026 11:45
@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/chatView.ts
  • src/vs/sessions/browser/parts/media/chatGroupsView.css
  • src/vs/sessions/browser/parts/media/sessionActivityBar.css
  • src/vs/sessions/browser/parts/media/sessionsPart.css
  • src/vs/sessions/browser/parts/sessionActivityBar.ts
  • src/vs/sessions/browser/parts/sessionView.ts
  • src/vs/sessions/contrib/layout/browser/baseSessionLayoutController.ts
  • src/vs/sessions/contrib/layout/browser/sessions.layout.contribution.ts
  • src/vs/sessions/contrib/layout/test/browser/baseSessionLayoutController.test.ts
  • src/vs/sessions/contrib/layout/test/browser/sessions.layout.contribution.test.ts

Ulugbek Abdullaev (@ulugbekna)

Matched files:

  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasActions.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasService.test.ts

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 8db556f2 Current: 512c8dc7

Added (16)

sessions/sessionActivityBar/sessionActivityBar/Narrow/Light

current

sessions/sessionActivityBar/sessionActivityBar/WorkspaceChat/Light

current

sessions/sessionActivityBar/sessionActivityBar/NearlyWide/Light

current

sessions/sessionActivityBar/sessionActivityBar/Wide/Light

current

sessions/sessionActivityBar/sessionActivityBar/NarrowActivityBarDisabled/Light

current

sessions/sessionActivityBar/sessionActivityBar/WideActivityBarDisabled/Light

current

sessions/sessionActivityBar/sessionActivityBar/SplitGroup/Light

current

sessions/sessionActivityBar/sessionActivityBar/RulerTimeline/Light

current

sessions/sessionActivityBar/sessionActivityBar/RulerTimelineWide/Light

current

sessions/sessionActivityBar/sessionActivityBar/ExternalSessionBanner/Light

current

sessions/sessionActivityBar/sessionActivityBar/ExternalSessionBannerWide/Light

current

sessions/sessionActivityBar/sessionActivityBar/ChatWithoutWorkspace/Light

current

sessions/sessionActivityBar/sessionActivityBar/WithoutLayoutActions/Light

current

sessions/sessionActivityBar/sessionActivityBar/Moved/Light

current

sessions/sessionActivityBar/sessionActivityBar/AtBottom/Light

current

sessions/sessionActivityBar/sessionActivityBar/SubmenuOpen/Light

current

Removed (15)

sessions/sessionToolbar/sessionToolbar/AtBottom/Light

baseline

sessions/sessionToolbar/sessionToolbar/ChatWithoutWorkspace/Light

baseline

sessions/sessionToolbar/sessionToolbar/ExternalSessionBanner/Light

baseline

sessions/sessionToolbar/sessionToolbar/ExternalSessionBannerWide/Light

baseline

sessions/sessionToolbar/sessionToolbar/Moved/Light

baseline

sessions/sessionToolbar/sessionToolbar/Narrow/Light

baseline

sessions/sessionToolbar/sessionToolbar/NarrowToolbarDisabled/Light

baseline

sessions/sessionToolbar/sessionToolbar/NearlyWide/Light

baseline

sessions/sessionToolbar/sessionToolbar/RulerTimeline/Light

baseline

sessions/sessionToolbar/sessionToolbar/RulerTimelineWide/Light

baseline

sessions/sessionToolbar/sessionToolbar/SplitGroup/Light

baseline

sessions/sessionToolbar/sessionToolbar/SubmenuOpen/Light

baseline

sessions/sessionToolbar/sessionToolbar/Wide/Light

baseline

sessions/sessionToolbar/sessionToolbar/WideToolbarDisabled/Light

baseline

sessions/sessionToolbar/sessionToolbar/WorkspaceChat/Light

baseline

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.

🟡 Changes recommended

Layout controls can become hidden or clipped, and the new-chat composer can overlap the activity bar.

2 open findings
What changed in this PR

Renames the Agents window’s Session Toolbar to Session Activity Bar and moves layout controls into it, building on the earlier symmetric-spacing changes.

Changes:

  • Renames settings, commands, menus, and components, with migration of the existing setting.
  • Adds grouped layout actions and shows the activity bar in new-session and new-chat views.
  • Updates spacing, accessibility help, documentation, tests, and fixtures.
File Description
src/​vs/​sessions/​test/​browser/​sessionView.test.ts Tests activity-bar visibility and insets.
src/​vs/​sessions/​test/​browser/​sessionActivityBar.test.ts Tests grouping, separators, and geometry.
src/​vs/​sessions/​test/​browser/​layoutActions.test.ts Tests renamed commands and layout menus.
src/​vs/​sessions/​test/​browser/​chatGroupsView.test.ts Tests activity bars across chat groups.
src/​vs/​sessions/​test/​browser/​addTabFixtureUtils.ts Adds grouped layout-action fixtures.
src/​vs/​sessions/​DESKTOP.md Documents activity-bar behavior.
src/​vs/​sessions/​contrib/​layout/​test/​browser/​sessions.layout.contribution.test.ts Tests setting migration.
src/​vs/​sessions/​contrib/​layout/​test/​browser/​baseSessionLayoutController.test.ts Tests side-panel action placement.
src/​vs/​sessions/​contrib/​layout/​browser/​sessions.layout.contribution.ts Registers settings and migration.
src/​vs/​sessions/​contrib/​layout/​browser/​baseSessionLayoutController.ts Relocates the side-panel toggle.
src/​vs/​sessions/​contrib/​editor/​test/​browser/​editor.contribution.test.ts Updates activity-bar menu assertions.
src/​vs/​sessions/​contrib/​editor/​browser/​addTabActions.ts Groups tab actions in the activity bar.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionActivityBar.fixture.ts Updates visual fixtures and layout controls.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​chatView.test.ts Tests symmetric content and timeline spacing.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Updates accessibility instructions.
src/​vs/​sessions/​contrib/​chat/​browser/​media/​chatView.css Applies symmetric content insets.
src/​vs/​sessions/​contrib/​chat/​browser/​chatView.ts Adjusts widget widths for both insets.
src/​vs/​sessions/​contrib/​chat/​browser/​chat.contribution.ts Adds background-menu toggles.
src/​vs/​sessions/​contrib/​canvases/​test/​electron-browser/​sessionCanvasService.test.ts Updates Canvas menu assertions.
src/​vs/​sessions/​contrib/​canvases/​electron-browser/​sessionCanvasActions.ts Places Canvas in the tabs group.
src/​vs/​sessions/​common/​sessionConfig.ts Defines renamed and legacy setting keys.
src/​vs/​sessions/​common/​contextkeys.ts Shares layout-action placement conditions.
src/​vs/​sessions/​browser/​parts/​sessionView.ts Hosts the standalone activity bar.
src/​vs/​sessions/​browser/​parts/​sessionActivityBar.ts Renames the component and renders all groups.
src/​vs/​sessions/​browser/​parts/​media/​sessionsPart.css Defines symmetric inset variables.
src/​vs/​sessions/​browser/​parts/​media/​sessionActivityBar.css Styles the slimmer strip and separators.
src/​vs/​sessions/​browser/​parts/​media/​chatGroupsView.css Simplifies split-group inset styling.
src/​vs/​sessions/​browser/​parts/​chatView.ts Publishes renamed content insets.
src/​vs/​sessions/​browser/​parts/​chatGroupView.ts Enables activity bars in new-chat views.
src/​vs/​sessions/​browser/​menus.ts Defines activity-bar menus and groups.
src/​vs/​sessions/​browser/​layoutActions.ts Registers toggles and relocates panel actions.
build/​lib/​stylelint/​vscode-known-variables.json Registers renamed CSS variables.

🧠 Review effort: Balanced


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

Comment thread src/vs/sessions/common/contextkeys.ts Resolved
…nts window

The menu separator color nearly matched the activity bar's background, and the Agents window's `!important` toolbar separator margin removed their spacing and centering. Use the toolbar separator color and keep the vertical margin.

Co-authored-by: Copilot <[email protected]>
- Keep the side panel and panel toggles in the title bar while the editor is maximized or the window uses the phone layout, since the activity bar is hidden then.
- Give the new-chat-in-session composer the standard content padding while the activity bar is shown, so its input stays clear of the strip.

Co-authored-by: Copilot <[email protected]>
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.

5 participants