Repository navigation
sessions: keep even space beside chat content with the Session Toolbar - #341996
Merged
Sandeep Somavarapu (sandy081) merged 4 commits intoOct 16, 2026
Merged
Sandeep Somavarapu (sandy081) merged 4 commits into
Sandeep Somavarapu (sandy081) merged 4 commits into
Conversation
With the Session Toolbar enabled, chat content now keeps the same inset on both sides, so it stays centered with even space beside it instead of giving up room only on the toolbar's side. The toolbar is also slimmer: 24px buttons (the minimum target size) and 12px clearance from the scrollbar, so the inset on each side drops from 38px to 30px. Wide chats are unchanged. 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:
|
Sandeep Somavarapu (sandy081)
marked this pull request as draft
October 16, 2026 10:02
auto-merge was automatically disabled
October 16, 2026 10:02
Pull request was converted to draft
Contributor
Screenshot ChangesBase: Changed (13) |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The scoped layout changes and updated regression assertions are consistent, with no unresolved blocking findings.
0 open findings
What changed in this PR
Centers existing chat content beside the Session Toolbar in the Agents window, following the earlier toolbar additions.
Changes:
- Applies equal content insets while preserving full-width scrollbars.
- Reduces toolbar buttons to 24px and updates layout calculations.
- Updates documentation, fixtures, and regression assertions.
No actionable findings remain. Live Agents window validation was not reported.
| File | Description |
|---|---|
| src/vs/sessions/test/browser/sessionView.test.ts | Updates expected toolbar insets. |
| src/vs/sessions/test/browser/sessionToolbar.test.ts | Checks slimmer toolbar and equal spacing. |
| src/vs/sessions/test/browser/chatGroupsView.test.ts | Updates group inset assertions. |
| src/vs/sessions/DESKTOP.md | Documents symmetric content spacing. |
| src/vs/sessions/contrib/chat/test/browser/sessionToolbar.fixture.ts | Mirrors symmetric renderer sizing. |
| src/vs/sessions/contrib/chat/test/browser/chatView.test.ts | Checks centered bands and editor widths. |
| src/vs/sessions/contrib/chat/browser/media/chatView.css | Centers content and related controls. |
| src/vs/sessions/contrib/chat/browser/chatView.ts | Deducts both insets from content width. |
| src/vs/sessions/browser/parts/sessionToolbar.ts | Updates toolbar dimensions and contract. |
| src/vs/sessions/browser/parts/media/sessionToolbar.css | Shrinks buttons and edge clearance. |
| src/vs/sessions/browser/parts/media/sessionsPart.css | Applies symmetric content and progress insets. |
| src/vs/sessions/browser/parts/media/chatGroupsView.css | Removes obsolete split-group overrides. |
| src/vs/sessions/browser/parts/chatView.ts | Renames the inset to reflect both sides. |
| src/vs/sessions/browser/parts/chatGroupView.ts | Passes the renamed inset through layout. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…on-toolbar-even-spacing
… timeline With the ruler prompt timeline and the Session Toolbar both shown, the transcript dropped the even content inset and used only the ruler's right-side reservation. It then started further left and ended well before the input. The chat view now widens the even inset on both sides to clear the rail as well, so the transcript and input share one centered band. Without the toolbar, the ruler keeps its own reservation. Co-authored-by: Copilot <[email protected]>
Instead of widening the content inset to clear the ruler prompt timeline (reverting 4d395c9), the ruler now sits in the Session Toolbar's column, with its resting marks centered on the strip. The content keeps the same even inset as without the ruler, and the toolbar sits above the rail where they overlap. Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081)
marked this pull request as ready for review
October 16, 2026 11:11
Sandeep Somavarapu (sandy081)
enabled auto-merge (squash)
October 16, 2026 11:11
Dmitriy Vasyura (dmitrivMS)
approved these changes
Oct 16, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/session-toolbar-even-spacing
branch
October 16, 2026 11:38
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 and #341912. With the Session Toolbar enabled, chat content had uneven space on its two sides. In narrow and medium chats it gave up room only on the toolbar's side: about 24px on the left versus 62px on the right. This keeps the content centered with even space on both sides, and makes the toolbar slimmer.
What changed
min(950px, width − 2 × inset), which always clears the toolbar.sessions.chatTimeline.display: ruler): the rail now shares the toolbar's column.AbstractChatView.layout()'scontentRightInsetis renamedcontentInset, since it now applies to each side. Embedded editors are laid out forwidth − 2 × inset.At 640px the composer now has 54px on each side, where it had 24px and 62px before.
Trade-off: in narrow chats the content is inset 30px further from the left edge than the session header title. Moving the toolbar into the chat header at narrow widths would avoid that, and could follow later.
How to test
"sessions.chatTimeline.display": "ruler", the transcript and input stay aligned and evenly spaced, and the ruler marks appear in the toolbar's column.Validation
./scripts/test.shon the affected suites (sessionToolbar,chatGroupsView,sessionView,chatView,layoutActions,sessionsChatAccessibilityHelp): 302 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, with 0 errors.