Repository navigation
sessions: Add guided model comparison setup for bakeoff - #339384
Conversation
Move comparison setup into the experimental model picker, with repeated attempts and optional Judge and Synthesizer roles. Preserve recommended synthesis and additional instructions while removing custom synthesis decisions and the old setup dialog.\n\nKeep the existing results grid and inherit the draft's provider-owned configuration. Co-authored-by: Copilot <[email protected]>
Screenshot ChangesBase: Changed (3)1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details. Added (8) |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unavailable workflows can trap the composer, generic Agent Hosts cannot launch comparisons, and legacy Judge restoration regresses.
Review effort: Balanced
Findings: 2
Open (5)
Support permission options for generic Agent Host providers · New Preserve Judge fallback for legacy comparison records · New Handle workflow becoming unavailable without trapping the user · New Gate comparison help text on both required settings · New Update tooltip when button changes to Run N Attempts · New
What changed in this PR
Replaces the comparison setup dialog with a guided model-picker workflow and simplifies judging and synthesis.
Changes:
- Adds Attempts → Judge → Synthesizer model selection and labeled launch controls.
- Supports optional judging/synthesis and removes custom synthesis decisions.
- Updates persistence, permissions, accessibility guidance, fixtures, and tests.
| File | Description |
|---|---|
src/vs/workbench/test/browser/componentFixtures/chat/tabbedModelPicker.fixture.ts |
Supports workflow fixtures. |
src/vs/workbench/contrib/chat/test/browser/widget/input/modelPicker/modelPickerTabbedWidget.test.ts |
Tests guided picker behavior. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerWorkflow.ts |
Defines workflow contracts. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerWidget.ts |
Displays workflow state. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerTabbedWidget.ts |
Renders workflow steps and navigation. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerItems.ts |
Adds checkbox accessibility semantics. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerActionItem.ts |
Exposes workflow through picker delegates. |
src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/media/modelPicker.css |
Styles workflow controls. |
src/vs/sessions/SESSION_COMPARISONS.md |
Documents the new comparison contract. |
src/vs/sessions/services/sessions/test/browser/sessionComparisonService.test.ts |
Tests optional roles and restoration. |
src/vs/sessions/services/sessions/common/sessionsProvider.ts |
Adds current-permission lookup API. |
src/vs/sessions/services/sessions/common/sessionComparison.ts |
Updates comparison types and limits. |
src/vs/sessions/services/sessions/browser/sessionComparisonService.ts |
Implements optional judging and simplified synthesis. |
src/vs/sessions/contrib/sessionComparison/test/browser/sessionComparisonTool.test.ts |
Updates tool contract tests. |
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonTool.ts |
Removes custom decision schemas. |
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostSessionPermissions.test.ts |
Tests native permission capture. |
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Exposes draft permissions. |
src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionPermissions.ts |
Reads native permission IDs. |
src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts |
Updates accessibility-help expectations. |
src/vs/sessions/contrib/chat/test/browser/sessionComparisonSetupDialog.test.ts |
Removes obsolete dialog tests. |
src/vs/sessions/contrib/chat/test/browser/sessionComparisonResult.test.ts |
Updates simplified result tests. |
src/vs/sessions/contrib/chat/test/browser/sessionComparisonModelSelection.test.ts |
Tests workflow state transitions. |
src/vs/sessions/contrib/chat/test/browser/sessionComparisonModelPicker.fixture.ts |
Adds themed workflow fixtures. |
src/vs/sessions/contrib/chat/test/browser/newChatInput.fixture.ts |
Adds comparison launch-button fixtures. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Documents the guided workflow. |
src/vs/sessions/contrib/chat/browser/sessionModelSelection.ts |
Carries picker workflows. |
src/vs/sessions/contrib/chat/browser/sessionComparisonResult.ts |
Removes custom synthesis UI. |
src/vs/sessions/contrib/chat/browser/sessionComparisonModelSelection.ts |
Implements comparison selection state. |
src/vs/sessions/contrib/chat/browser/newChatWidget.ts |
Integrates setup and launch behavior. |
src/vs/sessions/contrib/chat/browser/newChatInput.ts |
Adds labeled send-button support. |
src/vs/sessions/contrib/chat/browser/modelPicker.ts |
Connects the workflow to the picker. |
src/vs/sessions/contrib/chat/browser/media/sessionComparisonSetupDialog.css |
Removes obsolete dialog styling. |
src/vs/sessions/contrib/chat/browser/media/sessionComparisonResult.css |
Removes custom synthesis styling. |
src/vs/sessions/contrib/chat/browser/media/chatInput.css |
Styles labeled launch buttons. |
src/vs/platform/agentHost/common/sessionComparisonPrompts.ts |
Simplifies Judge instructions. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Keep evaluator prompts inline while collapsing their transcript display. Preserve the draft's execution mode and approval permissions for all comparison participants. Use standard group completion and Undo, add an opt-out for automatic attempt grids, restore the token warning, and address comparison setup and CI regressions. Co-authored-by: Copilot <[email protected]>
Keep comparison choices during draft configuration refreshes and resolve advertised permissions before creating attempts. Cover native approval aliases, policy restrictions, and legacy Judge restoration. Fix the CI formatting failure. Co-authored-by: Copilot <[email protected]>
Keep setup edits separate from the committed composer configuration and discard them on dismissal. Add Cancel throughout setup and use single-selection accessibility roles for Judge and Synthesizer.\n\nDelegate explicit creation permissions to schema-aware providers and cover the management-service launch boundary. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Comparison Undo can lose or later overwrite independent restoration intent, and resolved participant modes are not validated against the requested mode.
Review effort: Balanced
Findings: 3
Open (3)
Resolved since last review (5)
Port #339429 to the comparison picker branch while preserving the removal of custom synthesis selections. Co-authored-by: Copilot <[email protected]>
Reuse the comparison manifest limits so synthesis prompts cap both the number and length of Judge-reported strengths. Co-authored-by: Copilot <[email protected]> Copilot-Session: 598315f2-40d0-4abf-b1f5-d070158dadcb (cherry picked from commit da49634)
Validate inherited execution modes before launch and preserve configuration errors. Keep model search when selecting attempts, and restore comparison groups without overriding independently restored membership. Co-authored-by: Copilot <[email protected]>
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Sandeep Somavarapu (@sandy081)Matched files:
Ladislau Szomoru (@lszomoru)Matched files:
|
Pull request was converted to draft
Defer unresolved-model errors until a tool accesses its optional model. Agent Host tool search can run without an extension-host model, while model-backed tools and chat requests still reject unavailable selections instead of falling back. Co-authored-by: Copilot <[email protected]>
Preserve the guided comparison flow and ordinary synthesis while integrating upstream synthesis-strength bounds without duplicating the helper. Co-authored-by: Copilot <[email protected]>
Preserve the original icon-only Send button outside comparison mode and restore it when comparison setup is cleared. Keep the comparison icon styling limited to labeled buttons. Co-authored-by: Copilot <[email protected]>



demo-bakeoff.mov
Summary
A focused alternative to eli/abo-redesign, keeping the guided Compare Agents experience without its subagent refactor, replacement results surface, or shared extension-host model-resolution changes.
Guided comparison setup
Attempts, Judge, and synthesis
sessions.chat.compareAgents.openInGrid. When enabled, open the grid before discarding the original draft so automatic draft creation cannot cancel navigation; when disabled, attempts start in the background.Comparison group lifecycle
Scope
How to test
sessions.chat.compareAgents.enabledandchat.experimentalModelPicker.sessions.chat.compareAgents.openInGridenabled, verify attempts open together; disable it and verify a new comparison starts without automatic navigation.Validation
npm run compile- passed after rebasing onto main.npm run valid-layers-check- passed.node build/stylelint.ts src/vs/workbench/contrib/chat/browser/widget/media/chat.cssand targeted comparison CSS validation - passed.git diff --check- passed.Main focused regression command