Skip to content

sessions: improve comparison UI rendering - #341610

Merged
Megan Rogge (meganrogge) merged 8 commits into
microsoft:mainfrom
meganrogge:agents/fix-session-comparison-list-rendering
Oct 14, 2026
Merged

Megan Rogge (meganrogge) merged 8 commits into
microsoft:mainfrom
meganrogge:agents/fix-session-comparison-list-rendering

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #339708
Fixes #339901

demo.mov

Summary

  • nests active comparison groups beneath their workspace in workspace grouping
  • keeps comparison workspaces visible when workspace capping is enabled
  • restores the comparison disclosure chevron to the leading edge
  • constrains long comparison titles so they do not render beneath header actions
  • moves Compare Models to the trailing action group beside Search
  • reveals the Compare Models label immediately on hover and keyboard focus
  • adds regression coverage for list hierarchy, constrained headers, action placement, labeling, and toggle semantics

Validation

  • npm run build-fast -- --client-only — passed
  • npm run typecheck-client — passed
  • ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts — passed (232 tests)
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/widget/input/modelPicker/modelPickerTabbedWidget.test.ts — passed (102 tests)
  • ./scripts/test.sh --run src/vs/platform/actionWidget/test/browser/tabbedActionListWidget.test.ts — passed (52 tests)
  • npm run eslint -- src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts — passed
  • npm run eslint -- src/vs/platform/actionWidget/browser/tabbedActionListWidget.ts src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerTabbedWidget.ts src/vs/workbench/contrib/chat/test/browser/widget/input/modelPicker/modelPickerTabbedWidget.test.ts — passed
  • npm run stylelint -- src/vs/sessions/contrib/sessions/browser/media/sessionsList.css — passed (3 pre-existing design-token suggestions)
  • npm run stylelint -- src/vs/platform/actionWidget/browser/tabbedActionListWidget.css — passed (1 pre-existing design-token suggestion)

Copilot AI balanced review requested due to automatic review settings October 14, 2026 18:58
@meganrogge Megan Rogge (meganrogge) changed the title sessions: Fix comparison list rendering sessions: Fix comparison UI rendering Oct 14, 2026

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.

🟡 Changes recommended

Label sizing and nested-workspace metadata, ordering, and drag/drop behavior still introduce user-visible regressions.

4 open findings
What changed in this PR

Improves comparison rendering in the Agents session list and model picker, addressing hierarchy, header layout, and action discoverability.

Changes:

  • Nests comparisons beneath workspaces and keeps those workspaces visible when capped.
  • Adjusts comparison headers and moves Compare Models beside Search.
  • Adds hierarchy, layout, label, and toggle regression assertions.
File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Checks action placement, labels, and toggle state.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.ts Moves Compare Models and enables label reveal.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Checks comparison hierarchy and header styling.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsList.ts Nests comparisons and preserves workspace visibility.
src/​vs/​sessions/​contrib/​sessions/​browser/​media/​sessionsList.css Constrains titles and restores leading chevrons.
src/​vs/​platform/​actionWidget/​browser/​tabbedActionListWidget.ts Adds optional hover/focus action labels.
src/​vs/​platform/​actionWidget/​browser/​tabbedActionListWidget.css Styles revealed labels and trailing actions.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@meganrogge Megan Rogge (meganrogge) added this to the 1.143.0 milestone Oct 14, 2026
@meganrogge
Megan Rogge (meganrogge) marked this pull request as draft October 14, 2026 19:27
@meganrogge Megan Rogge (meganrogge) changed the title sessions: Fix comparison UI rendering sessions: improve comparison UI rendering Oct 14, 2026
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review October 14, 2026 19:37
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 14, 2026 19:37
Nest active comparison groups under their workspace and keep comparison headers from painting beneath their actions. Restore the disclosure chevron to the leading edge and cover the resulting tree hierarchy and layout constraints.\n\nFixes microsoft#339708\n\nCo-authored-by: Copilot <[email protected]>
Place model comparison beside Search instead of among provider controls, and reveal its label immediately on hover or keyboard focus. Add coverage for action order, labeling, and toggle semantics.\n\nFixes microsoft#339901\n\nCo-authored-by: Copilot <[email protected]>
Do not add a native title tooltip when a tab-bar action already reveals its label on hover or keyboard focus.\n\nCo-authored-by: Copilot <[email protected]>
Keep Compare Models consistent with the adjacent Search action and avoid overlapping inline and native tooltip treatments.\n\nCo-authored-by: Copilot <[email protected]>
Use workbench-managed hovers for model picker tab actions so Compare Models and Search display reliable tooltips without overlapping browser titles.\n\nCo-authored-by: Copilot <[email protected]>
Keep comparison-only workspaces ordered and complete, prevent nested comparison headers from top-level reordering, and scope the managed model tooltip exclusively to Compare Models.\n\nCo-authored-by: Copilot <[email protected]>
Keep the shared tabbed action widget stylesheet unchanged and apply adjacent trailing-action spacing only when the model picker's Compare Models workflow action is present.\n\nCo-authored-by: Copilot <[email protected]>
Keep ordinary workspace rendering on its existing path and pass comparison-filtered children explicitly, while retaining all sessions as workspace metadata.\n\nCo-authored-by: Copilot <[email protected]>
@meganrogge
Megan Rogge (meganrogge) force-pushed the agents/fix-session-comparison-list-rendering branch from bbc1644 to c21ff77 Compare October 14, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compare button behaves weirdly in the context of the model picker Agents - attempts feedback for the session list

3 participants