Repository navigation
workbench: join connected tab shoulders and separators - #351117
Draft
Cherry Wang (chryw) wants to merge 6 commits into
Draft
Cherry Wang (chryw) wants to merge 6 commits into
Cherry Wang (chryw) wants to merge 6 commits into
Conversation
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]>
Contributor
There was a problem hiding this comment.
🟢 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]>
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]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This branch has not been deployed
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.
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.
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
mainatc9d084f011d; a rerun onmainatb755f682b20reproduces 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.Validation
pnpm run typecheck-clientandpnpm 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.pnpm run oxlint, changed-CSS stylelint, andpnpm run valid-layers-check: passed.editorTabBar.spec.tscomponent-fixture Playwright check: 15 passed; it now reads the shoulder color from the shared outline stroke.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.