Skip to content

workbench: join connected tab shoulders and separators - #351117

Draft
Cherry Wang (chryw) wants to merge 6 commits into
mainfrom
dev/cherwan/agents/polish-terminal-tabs-shoulder-curves
Draft

Cherry Wang (chryw) wants to merge 6 commits into
mainfrom
dev/cherwan/agents/polish-terminal-tabs-shoulder-curves

Conversation

@chryw

@chryw Cherry Wang (chryw) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Connected tabs should have an even-weight outline from the rounded cap, through the reverse corner, into the horizontal separator. Independently painting the cap, shoulder, and full separator can paint the same pixels twice. Translucent borders reveal this as a brighter seam, including the horizontal overlap visible in the Agents window terminal tabs.

This change constructs each reverse corner and its outward separator as one continuous stroke. A shared renderer derives the junction from the actual tab bounds and existing radius/stroke tokens, rather than masking the overlap or tuning a radius for one theme.

  • Reuses one renderer and shared cap/clipping styles across editor tabs, pane headers/footers, Agents panel tabs, chat tabs, and modal-style editor tabs, including pet customization.
  • Retains native cap painting, top accents, focus styling, and hit targets. Clips the cap at the derived vertical tangent and respects the enclosing frame.
  • Handles selection, wrapping, sticky regions, overflow, direction, density, and zoom. Zero-radius junctions account for the full stroke rectangle, not just meeting centerlines.

Compare the horizontal join

Matched headless Chromium fixture crops, Dark 2026, DPR 4. Both states use the same controlled 40%-opacity magenta border to expose double painting; this is a diagnostic, not a theme change. Before is main at c9d084f011d; a rerun on main at b755f682b20 reproduces the same overlap (73 and 112 doubled pixels at default and compact density, peak alpha .64 vs. .4) while this branch shows none. Notice the brighter wedge where the old shoulder meets the horizontal line; the new curve continues into the line without that extra layer.

Density Before After
Default Default density: brighter overlapping wedge at the horizontal tangent Default density: continuous curve and separator with even stroke weight
Compact Compact density: brighter overlapping wedge at the horizontal tangent Compact density: continuous curve and separator with even stroke weight

Validation

  • pnpm run typecheck-client and pnpm run build-fast --client-only: passed.
  • node test/unit/browser/index.js --run src/vs/workbench/test/browser/parts/connectedTabOutline.test.ts --run src/vs/sessions/test/browser/parts/panelPart.test.ts --run src/vs/workbench/test/browser/parts/paneCompositePart.test.ts --run src/vs/sessions/test/browser/chatCompositeBar.test.ts --run src/vs/workbench/test/browser/parts/editor/multiEditorTabsControl.test.ts --run src/vs/workbench/contrib/chat/test/browser/chatPetAchievementsEditor.test.ts --run src/vs/workbench/contrib/modernUI/test/browser/modernUI.contribution.test.ts --run src/vs/workbench/contrib/sessions/test/browser/parts/sessionBarStyles.test.ts --browser chromium --reporter dot: 338 passed, including wrapped-row heights, footer perimeters, keyboard focus, and upstream color customizations.
  • Changed-TypeScript pnpm run oxlint, changed-CSS stylelint, and pnpm run valid-layers-check: passed.
  • 72 painted configurations covered density, direction, DPR, fractional CSS zoom, unequal cap/shoulder radii, zero radii, thicker strokes, and workbench headers/footers. No diagnostic stroke pixels exceeded alpha .45 for a .4 input stroke.
  • editorTabBar.spec.ts component-fixture Playwright check: 15 passed; it now reads the shoulder color from the shared outline stroke.
  • 24 fixture render/disposal checks passed. Inspected Dark 2026, Light 2026, and high-contrast panel tabs, plus default/compact wrapped editor tabs. Existing tests also cover sticky/pinned tabs, overflow, and non-connected modes.

Evidence is component-fixture/headless Chromium validation, not native-window or assistive-technology testing. The modal-editor adapter is code/type checked but its actual modal header was not visually exercised.

To try it, enable connected tabs, select first and middle tabs, then compare the cap-to-side and shoulder-to-horizontal joins at both densities. A translucent border should remain even through both joins, without gaps or a line under the selected tab.

The companion Shape guidance in #351118 separates tangent geometry from compositing and uses this failure as its connected-boundary example.

The active connected panel tab drew its side stroke twice: once from the
tab cap's border and again from the concave shoulder beneath it. With a
translucent border, such as in Dracula, the overlap showed as a brighter
band running into the shoulder curve.

The tab now follows the single-owner connected-tab recipe: the indicator
paints only the fill, the shared tab-connected-edge layer paints the cap's
sides and top and stops one shoulder radius above the baseline, and the
shoulders own the curves. The panel frame still owns the first tab's
leading edge.

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 604a223f Current: ffc6a5a2

Changed (72)

sessions/grid/sessionsGrid/SidePanelGap/Light
Before After
before after
sessions/grid/sessionsGrid/SidePanelGapRtl/Light
Before After
before after
sessions/grid/sessionsGrid/SidePanelGapRtlNoFileIcons/Light
Before After
before after
sessions/grid/sessionsGrid/PillSidePanelGap/Light
Before After
before after
sessions/grid/sessionsGrid/JustifiedPillSideAndBottomPanelGap/Light
Before After
before after
sessions/grid/sessionsGrid/MultipleChats/Light
Before After
before after
sessions/grid/sessionsGrid/MacWindowCorners/Light
Before After
before after
sessions/grid/sessionsGrid/RelatedChats/Light
Before After
before after
sessions/grid/sessionsGrid/RelatedChatTabHover/Light
Before After
before after
sessions/grid/sessionsGrid/RelatedChatsRtl/Light
Before After
before after
sessions/grid/sessionsGrid/MixedRelatedChats/Light
Before After
before after
sessions/grid/sessionsGrid/NestedChatGroups/Light
Before After
before after
sessions/editorHeader/editorHeader/SingleRowConnected/Light
Before After
before after
sessions/editorHeader/editorHeader/SingleRowConnectedWrapEnabled/Light
Before After
before after
sessions/editorHeader/editorHeader/CompactSingleRowConnected/Light
Before After
before after
sessions/editorHeader/editorHeader/WrappedEditorActions/Light
Before After
before after
sessions/editorHeader/editorHeader/CompactWrappedEditorActions/Light
Before After
before after
sessions/editorHeader/editorHeader/PinnedWrappedEditorActions/Light
Before After
before after
sessions/editorHeader/editorHeader/ConnectedChangesCard/Light
Before After
before after
sessions/editorHeader/editorHeader/CompactLayoutChangesCard/Light
Before After
before after
sessions/editorHeader/editorHeader/CompactLayoutSecondTabCard/Light
Before After
before after
sessions/editorHeader/editorHeader/ConnectedSecondTabCard/Light
Before After
before after
sessions/editorHeader/editorHeader/FullHeader/Light
Before After
before after
sessions/editorHeader/editorHeader/CompactFullHeader/Light
Before After
before after
sessions/editorHeader/editorHeader/BreadcrumbsAndAction/Light
Before After
before after
sessions/editorHeader/editorHeader/BreadcrumbsAndSecondaryAction/Light
Before After
before after
sessions/editorHeader/editorHeader/BreadcrumbsOnly/Light
Before After
before after
sessions/editorHeader/editorHeader/PrimaryActionOnly/Light
Before After
before after
sessions/editorHeader/editorHeader/SecondaryActionOnly/Light
Before After
before after
sessions/editorHeader/editorHeader/LayoutActionsOnly/Light
Before After
before after
sessions/panel-tabs/panelTabs/ConnectedDefaultLabels/Light
Before After
before after
sessions/panel-tabs/panelTabs/ConnectedCompactLabels/Light
Before After
before after
sessions/chatCompositeBar/StickyMessageFrame/Light
Before After
before after
sessions/chatCompositeBar/StickyMessageFrameNarrow/Light
Before After
before after
sessions/chatCompositeBar/FirstChatActive/Light
Before After
before after
sessions/chatCompositeBar/TwoChats/Light
Before After
before after
sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after
sessions/chatCompositeBar/ReadOnlyStatuses/Light
Before After
before after
sessions/chatCompositeBar/LongTitles/Light
Before After
before after
sessions/chatCompositeBar/Renaming/Light
Before After
before after
sessions/chatCompositeBar/WithDraftChat/Light
Before After
before after
sessions/chatCompositeBar/CompactTabs/Light
Before After
before after
sessions/chatCompositeBar/InactiveSession/Light
Before After
before after
sessions/chatCompositeBar/OverflowingTabs/Light
Before After
before after
chat/petAchievements/standaloneModal/chatPetAchievementsEditor/ModernUIAchievements/Light
Before After
before after
chat/petAchievements/standaloneModal/chatPetAchievementsEditor/ModernUIColor/Light
Before After
before after
chat/SessionPathConfirmation/chatSessionPathConfirmation/OtherSession/Light
Before After
before after
editor/tabs/Density/Compact/AcrossTabStyles/Light
Before After
before after
editor/tabs/Density/Compact/SingleRow/Light
Before After
before after
editor/tabs/Density/Compact/SingleTab/Light
Before After
before after
editor/tabs/Density/Compact/WrappedBottomActive/Light
Before After
before after
editor/tabs/Density/Default/AcrossTabStyles/Light
Before After
before after
editor/tabs/Density/Default/SingleRow/Light
Before After
before after
editor/tabs/Density/Default/SingleTab/Light
Before After
before after
editor/tabs/Density/Default/WrappedBottomActive/Light
Before After
before after
editor/tabs/Layout/ActionsHidden/Light
Before After
before after
editor/tabs/Layout/ActionsOnLeft/Light
Before After
before after
editor/tabs/Layout/ActionsUnreserved/Light
Before After
before after
editor/tabs/Layout/FileIconsMinimal/Light
Before After
before after
editor/tabs/Layout/FileIconsModernWelcome/Light
Before After
before after
editor/tabs/Layout/FileIconsNone/Light
Before After
before after
editor/tabs/Layout/LongNamesFit/Light
Before After
before after
editor/tabs/Layout/LongNamesFixed/Light
Before After
before after
editor/tabs/Layout/LongNamesShrink/Light
Before After
before after
editor/tabs/Layout/ChatPartLongTitles/Light
Before After
before after
editor/tabs/Layout/ModifiedAndMultiSelected/Light
Before After
before after
editor/tabs/Layout/PinnedIconOnly/Light
Before After
before after
editor/tabs/Layout/PinnedSeparateRow/Light
Before After
before after
editor/tabs/Layout/ShowBreadCrumbs/Light
Before After
before after
editor/tabs/NewTabButton/WrappedConnected/Light
Before After
before after
editor/tabs/ScrollbarPlacement/Light
Before After
before after
editor/tabs/Styles/Connected/Light
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Added (2)

sessions/panel-tabs/panelTabs/WorkbenchHeader/Light

current

sessions/panel-tabs/panelTabs/WorkbenchFooter/Light

current

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.

🟢 Approval recommended

No active review issues remain for the connected-tab border fix.

No open issues 🎉

What changed in this PR

This PR fixes overlapping strokes on connected panel tabs in the Agents window, preventing brighter bands with translucent theme borders while preserving existing radii and tokens.

Changes:

  • Separates tab fill from the cap outline, with shoulders and the panel frame retaining ownership of their stroke segments.
  • Updates browser tests to check fill and stroke ownership in left-to-right, right-to-left, and compact layouts.

No actionable findings remain.

File Description
src/​vs/​sessions/​test/​browser/​parts/​panelPart.test.ts Adds edge elements to fixtures and checks separate fill and stroke ownership.
src/​vs/​sessions/​browser/​parts/​media/​panelPart.css Moves cap strokes to the edge layer and clips them where the shoulders take over.

Review effort: Balanced

Use one shared curve-to-baseline contour across connected tab strips. Preserve native caps, accents, and focus styling while preventing translucent outlines from compositing the horizontal junction twice.

Co-authored-by: Copilot <[email protected]>
@chryw Cherry Wang (chryw) changed the title sessions: paint each connected panel tab stroke once workbench: join connected tab shoulders and separators Nov 30, 2026
Cherry Wang (chryw) and others added 4 commits November 30, 2026 08:36
Integrate main at c9d084f while preserving upstream tab colors and accents. Share cap paint and tangent clipping, remove unnecessary editor/footer geometry overrides, and validate the existing layout invariants.

Co-authored-by: Copilot <[email protected]>
The shared connected-tab outline now paints each shoulder and its connector, so the fixture test reads the stroke color from that owner while keeping its check that connected defaults use the structural boundary rather than the theme's active-top accent.

Co-authored-by: Copilot <[email protected]>

This branch has not been deployed

No deployments
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.

2 participants