Skip to content

sessions: dock the Session Activity Bar in a fixed column beside the side pane - #346320

Merged
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/session-activity-bar-sidepanel-fixed
Nov 5, 2026
Merged

Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/session-activity-bar-sidepanel-fixed

Conversation

@sandy081

Copy link
Copy Markdown
Member

The Session Activity Bar of the active chat now docks in a fixed-width column at the right edge of the Agents window's content row, instead of floating in a column inside each chat.

What changed

  • Placement: the strip shows in its own 34px grid column, to the right of the side pane, or to the right of the chat while the side pane is closed. With the spanning panel alignment, the column also runs beside the panel.
  • Look: the strip's top is level with the cards beside it, and it takes their border, corner radius and background instead of the floating widget look.
  • No dragging: the drag grip is removed and the strip's position is fixed.
  • More room for chats: in the main window, chats no longer keep their own 34px column for the strip.

How it works

  • sessionActivityBarHost.ts now holds the external-host API (registerSessionActivityBarExternalHost, SESSION_ACTIVITY_BAR_COLUMN_WIDTH) and the new SessionActivityBarColumn grid view. Moving them out of sessionActivityBar.ts lets workbench.ts import them without a cycle.
  • The desktop workbench adds the column as the last leaf of the content row and registers it as the main window's host, the same mechanism chat windows already use for their strip column. Strips in chat windows keep using their own window's host.
  • The column shows only while the active strip is in it. It stays hidden in the phone layout, while a custom view (such as Inbox) hides the Sessions Part, and while the bar is disabled.
  • Visibility changes apply on the next animation frame. When switching chats, one strip leaves as another enters, so the parts beside the column do not jump, and the grid never changes while it is laying out the view whose strip moves.
  • While a view is maximized, visibility changes wait until it is restored, because changing a view's visibility would end the maximization.

For reviewers

  • In chat windows, the strip still docks inside the chat while the chat is beside the editor; it is now fixed at the top there as well.
  • The Moved and AtBottom component fixtures are removed and the remaining Session Activity Bar fixtures lose the grip, so the screenshot baselines will need updating.
  • DESKTOP.md and LAYOUT.md are updated for the new column.

Validation

  • pnpm run typecheck-client: passed
  • pnpm run precommit (hygiene): passed
  • ./scripts/test.sh --runGlob "vs/sessions/**/*.test.js": passed (10,433 passing, 27 pending)
  • pnpm run eslint (changed files), pnpm run stylelint (changed CSS) and pnpm run valid-layers-check: passed
  • Not run: a check in a running Code OSS window.

To test: open the Agents window, select a chat and confirm the activity bar shows at the far right, level with the side pane's top. Close the side pane and confirm the bar stays at the right of the chat.

…side pane

The active chat's Session Activity Bar now shows in a fixed-width column at the right of the main window's content row, to the right of the side pane, or of the chat while the side pane is closed, instead of floating in a column inside each chat. Its top is level with the cards beside it and it is framed like them. The drag grip is removed: the bar's position is fixed.

The external-host API moves to sessionActivityBarHost.ts so the workbench can add the column without an import cycle. The column shows only while the active strip is in it, applied on the next frame so switching chats does not move the parts beside it, and not while a view is maximized.

Co-authored-by: Copilot <[email protected]>
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.146.0 milestone Nov 5, 2026
Copilot AI balanced review requested due to automatic review settings November 5, 2026 17:58
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 822470e0 Current: 4f30ed07

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

Removed (2)

sessions/sessionActivityBar/sessionActivityBar/AtBottom/Light

baseline

sessions/sessionActivityBar/sessionActivityBar/Moved/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

Opening a custom view while a chat is active leaves the hidden chat’s activity bar visible and its 34px column reserved; the host must be deactivated during custom views, with regression coverage for opening and closing them.

1 open issue
What changed in this PR

Moves the active chat’s Session Activity Bar into a fixed column at the right edge of the Agents window, freeing space inside chats while preserving chat-window hosting.

Changes:

  • Adds a shared host module and grid column with deferred visibility updates.
  • Removes dragging and aligns the strip’s position and styling with adjacent cards.
  • Updates callers, tests, fixtures, and layout documentation.
File Description
src/​vs/​sessions/​test/​browser/​workbench.test.ts Tests column placement and deferred visibility.
src/​vs/​sessions/​test/​browser/​sessionActivityBar.test.ts Tests fixed positioning and external hosting without a grip.
src/​vs/​sessions/​test/​browser/​chatGroupsView.test.ts Updates the column-width import.
src/​vs/​sessions/​LAYOUT.md Documents the new grid column.
src/​vs/​sessions/​DESKTOP.md Describes fixed docking and chat-window behavior.
src/​vs/​sessions/​contrib/​chatWindow/​test/​browser/​sessionsChatWindowProvider.test.ts Updates the shared host import.
src/​vs/​sessions/​contrib/​chatWindow/​browser/​sessionsChatWindowProvider.ts Adapts chat-window hosting to the simplified API.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionActivityBar.fixture.ts Removes drag fixtures and updates layout calls.
src/​vs/​sessions/​browser/​workbench.ts Registers the column and manages grid visibility.
src/​vs/​sessions/​browser/​parts/​sessionView.ts Updates standalone strip layout calls.
src/​vs/​sessions/​browser/​parts/​sessionActivityBarHost.ts Extracts hosting utilities and defines the grid column.
src/​vs/​sessions/​browser/​parts/​sessionActivityBar.ts Removes dragging and uses fixed positioning.
src/​vs/​sessions/​browser/​parts/​media/​sessionActivityBar.css Adds column styling and removes grip styles.
src/​vs/​sessions/​browser/​parts/​chatGroupView.ts Updates chat-group strip layout calls.

Review effort: Balanced

Comment thread src/vs/sessions/browser/workbench.ts Resolved
@sandy081
Sandeep Somavarapu (sandy081) merged commit 30a11da into main Nov 5, 2026
57 of 59 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/session-activity-bar-sidepanel-fixed branch November 5, 2026 19:30
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