Repository navigation
sessions: show the Session Toolbar only beside existing chats - #341912
Merged
Sandeep Somavarapu (sandy081) merged 1 commit intoOct 16, 2026
Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
Sandeep Somavarapu (sandy081) merged 1 commit into
Conversation
The new-session view (including while a new session is being prepared) and the new-chat view no longer show the Session Toolbar or reserve room for it, so their composers keep the full width. The toolbar's toggle is also removed from the new-session view's background context menu, since the toolbar never appears there. Co-authored-by: Copilot <[email protected]>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The scoped changes consistently implement the intended behavior with focused regression coverage and no identified blocking issues.
0 open findings
What changed in this PR
Restricts the Agents window Session Toolbar to existing chats, keeping new-session and new-chat composers full-width.
Changes:
- Removes the standalone toolbar and gates chat-group visibility and spacing on existing chats.
- Removes the new-session context-menu toggle and unused composer inset styling.
- Updates regression tests and desktop documentation.
| File | Description |
|---|---|
src/vs/sessions/test/browser/sessionView.test.ts |
Checks toolbar absence before session creation. |
src/vs/sessions/test/browser/layoutActions.test.ts |
Checks removal of the new-session menu toggle. |
src/vs/sessions/test/browser/chatGroupsView.test.ts |
Covers toolbar and inset changes when a chat starts. |
src/vs/sessions/DESKTOP.md |
Documents toolbar availability. |
src/vs/sessions/contrib/chat/browser/media/chatView.css |
Removes new-chat inset styling. |
src/vs/sessions/contrib/chat/browser/chatView.ts |
Restores full-width new-chat layout. |
src/vs/sessions/contrib/chat/browser/chat.contribution.ts |
Keeps the toggle only in the transcript background menu. |
src/vs/sessions/browser/parts/sessionView.ts |
Removes standalone toolbar management. |
src/vs/sessions/browser/parts/chatGroupView.ts |
Limits toolbar visibility and reserved space to existing chats. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Dmitriy Vasyura (dmitrivMS)
approved these changes
Oct 16, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/session-toolbar-existing-chats-only
branch
October 16, 2026 01:15
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #341841. The Session Toolbar now shows only beside existing chats. The new-session view and the new-chat view no longer show it, and no longer reserve room for it, so their composers keep the full width.
What changed
SessionView): the standalone Session Toolbar is removed. That covers both the new-session composer and the view shown while a new session is being prepared.SessionViewis back to its state before sessions: add a Session Toolbar beside the active chat #341841.ChatGroupView): the toolbar is active, and its room reserved, only while the group shows an existing chat (kind === 'chat'). A group showing the new-chat view (newChatInSession) has neither.NewChatViewno longer applies a toolbar inset, and its.chat-view-newwidth rule is removed.DESKTOP.mdnow describes where the toolbar appears.How to test
Validation
./scripts/test.shon the affected suites (sessionView,chatGroupsView,sessionToolbar,layoutActions,chatView,sessionsChatAccessibilityHelp,newSessionComposerLayout,chatBackgroundTint,sessionsActions): 404 passing.npx tsc --noEmit -p src/tsconfig.json --skipLibCheck: passed.node build/eslint.ts,npm run stylelint, andnode build/hygiene.tson the changed files, plusnpm run valid-layers-check: passed.newChatWidget,chatView, andsessionToolbarfixtures on this branch and onmain. They are pixel-identical, including all 24 that block CI, with 0 render errors.