Repository navigation
Chat windows: inset the title bar's last actions and name the layout control Configure Layout - #346599
Merged
Sandeep Somavarapu (sandy081) merged 4 commits intoNov 6, 2026
Conversation
…control Configure Layout - The layout actions of a chat window's title bar end at the same inset as the main window's title bar actions, and keep the main window's gap after the session's actions. Since #346529 they ended flush against the window edge (macOS) or its window controls (Windows, Linux). - The Layout menu in the title bar and the Session Activity Bar is named Configure Layout, as the workbench's layout control is, in every layout mode, rather than after the current mode ("Layout: Side by Side"). Co-authored-by: Copilot <[email protected]>
…indow's The main window's title bar sits inside the grid's floating panel gap (and keeps that inset in Compact), so its last actions end 8px + the gap from the window edge. A chat window's title bar spans the window edge to edge, so its layout actions add that gap to their 8px inset to end at the same distance. Co-authored-by: Copilot <[email protected]>
…r draws itself With window.controlsStyle custom (Windows, Linux), the title bar draws the window controls after its actions. The main window's gap is then after the controls, so the actions keep only their 8px before them. The title bar marks itself when it draws its controls, and a chat window's layout actions keep only their 8px there too. Co-authored-by: Copilot <[email protected]>
Contributor
Screenshot ChangesBase: Changed (10) |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The reduced title-bar inset remains active in fullscreen with custom window controls, placing the chat window’s last action closer to the edge than the main window’s.
1 open issue
What changed in this PR
This PR restores right-edge spacing for Agents chat-window title-bar actions and gives the layout control a consistent name.
Changes:
- Registers “Configure Layout” once per location instead of using mode-specific titles.
- Adds chat-window action insets and spacing, with an adjustment for custom window controls.
- Adds regression tests and updates the title-bar fixture label.
| File | Description |
|---|---|
src/vs/workbench/contrib/chatWindow/browser/chatWindowLayoutActions.ts |
Removes unused short layout-mode titles. |
src/vs/sessions/test/electron-browser/titlebarPart.test.ts |
Tests the custom-window-controls marker. |
src/vs/sessions/electron-browser/parts/titlebarPart.ts |
Marks title bars that draw custom window controls. |
src/vs/sessions/contrib/chatWindow/test/browser/chatWindowTitleBar.fixture.ts |
Updates the fixture label to “Configure Layout”. |
src/vs/sessions/contrib/chatWindow/test/browser/chatWindowContribution.test.ts |
Tests consistent layout-menu naming across modes and locations. |
src/vs/sessions/contrib/chatWindow/browser/chatWindowActions.ts |
Registers one consistently named layout submenu per location. |
src/vs/sessions/browser/parts/media/titlebarpart.css |
Adds right insets and spacing between action groups. |
Review effort: Balanced
In full screen the custom window controls are hidden, as the `.monaco-workbench.fullscreen` rule does, so the layout actions keep the gap-inclusive inset then, as the main window's last actions do. Co-authored-by: Copilot <[email protected]>
Ben Villalobos (benvillalobos)
approved these changes
Nov 6, 2026
Sandeep Somavarapu (sandy081)
deleted the
agents/fix-agents-window-title-bar-bugs
branch
November 6, 2026 17:46
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.

Fixes two issues in the title bar of Agents window chat windows. One is a regression from #346529.
Problem
AgentsWindowMenus.TitleBarRightLayout). That toolbar is always empty in chat windows, so it hides and takes the inset with it. Before Chat windows: always show the Agents title bar across the top #346529, the session header's actions came last in a chat window's title bar and carried the inset. Chat windows: always show the Agents title bar across the top #346529 removed them without moving the inset.Changes
--vscode-spacing-size80plus--vscode-agents-layout-floatingPanelGapfrom the edge. A chat window's title bar spans the window, so its layout actions add that gap to their inset.window.controlsStyle: customon Windows and Linux, the title bar draws the window controls after its actions. The main window's gap then sits after the controls, so the actions keep only their 8px before them. The title bar now marks itself (custom-window-controls) when it draws its own controls, and a chat window's layout actions also keep only their 8px there.--vscode-spacing-size40) gap after the session's actions.How to test
sessions.sessionActivityBar.showLayoutActionsand repeat step 3 on the Session Activity Bar's layout control.window.controlsStyleset tonativeand tocustom.Validation
./scripts/test.sh --run src/vs/sessions/contrib/chatWindow/test/browser/chatWindowContribution.test.ts --grep "Layout menu": the new test failed before the fix with a per-mode title at both locations, and passes with it../scripts/test.shon chatWindowContribution, chatWindowLayoutActions, sessions titlebarPart (browser and electron-browser), sessionActivityBar and sessionsChatWindowProvider: 101 passing, 1 pending. The pending test is the new custom window controls test, which only runs on Windows and Linux.pnpm run typecheck-client,pnpm run eslinton the changed files andnode build/stylelint.tson the changed CSS: all pass.pnpm run valid-layers-checkpasses on the first commit; the later commits add no imports.sessions/chatWindow/titleBar/*(24): rendered before and after. Only the title bar's right-hand actions change. The committed screenshot baselines need updating.main: