Skip to content

sessions: Add guided model comparison setup for bakeoff - #339384

Merged
Megan Rogge (meganrogge) merged 11 commits into
mainfrom
agents/compare-model-picker-flow
Oct 3, 2026
Merged

Megan Rogge (meganrogge) merged 11 commits into
mainfrom
agents/compare-model-picker-flow

Conversation

@meganrogge

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

Copy link
Copy Markdown
Collaborator
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

  • Replace the setup dialog with an experimental workflow inside the tabbed model picker: Attempts -> optional Judge -> optional Synthesizer.
  • Run 2-10 distinct fixed models once each, or one fixed model 2-10 times. Auto/routing models are excluded.
  • Done saves the setup in the composer; Run N Attempts launches it. Back/Next navigation preserves selections, and unavailable models invalidate the saved setup.
  • Freeze the draft's workspace, branch, agent harness, execution mode, approval permissions, attachments, and supported model configuration into every participant. Permission and mode remain independent, so Interactive, Autopilot, and Plan drafts retain their selected approval level.
  • Each selected model uses its effective saved or schema-default thinking/reasoning configuration. This picker does not currently expose per-role thinking-level overrides.
  • Show the token warning immediately when hovering Run N Attempts.

Attempts, Judge, and synthesis

  • Keep the existing comparison grid and results surface. Attempts launch concurrently in isolated worktrees with stable participant identities.
  • Add the default-on, opt-out setting 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.
  • Make Judge and Synthesizer independently optional: attempts can run without review, and review can run without synthesis.
  • Keep full Judge and synthesis instructions inline for reliable tool references. Present only their initial main-chat requests as collapsed Judge Instructions / Synthesis Instructions disclosures; the complete prompt remains available when expanded, copied, searched, edited, or read through Accessible View.
  • Preserve recommended synthesis and optional additional instructions. Remove Custom Synthesis decisions, questions, per-attempt choices, and their tool/schema contracts.
  • Ignore obsolete persisted custom-decision data while retaining additional instructions and existing synthesis participants. Legacy unversioned comparisons retain their previous Judge fallback; new comparisons do not infer one.

Comparison group lifecycle

  • Use the standard comparison-group Mark All as Done action and confirmation instead of a custom archive control.
  • Automatically retire and remove only the generated comparison group after all of its participant sessions are archived.
  • Make bulk Undo recreate that comparison group and restore membership without moving sessions that the user independently restored or assigned to another group.
  • Leave ordinary and manually created groups unchanged, including unrelated empty groups.

Scope

  • Shared model-picker workflow and chat-request disclosure hooks are optional and inert for ordinary chat/model-picker callers.
  • No subagent refactor, replacement results surface, custom-synthesis UI, or shared extension-host model-resolution workaround is included.

How to test

  1. In the Agents window, enable sessions.chat.compareAgents.enabled and chat.experimentalModelPicker.
  2. Start a new Agent Host draft in a Git repository with at least one commit and a remote, using an agent that supports worktrees.
  3. Select Interactive, Autopilot, or Plan and an approval-permission level. Open the model picker and activate Compare Models.
  4. Select one model and adjust Number of Runs, or choose 2-10 distinct models. Confirm each selected model inherits its existing saved/default thinking level; changing thinking levels within this picker is not supported in this PR.
  5. Optionally select a Judge and Synthesizer, use Back/Next to verify choices persist, choose Done, then hover and activate Run N Attempts.
  6. Verify every participant inherits the draft's execution mode and approval permissions. With sessions.chat.compareAgents.openInGrid enabled, verify attempts open together; disable it and verify a new comparison starts without automatic navigation.
  7. With a Judge, verify its full inline instructions are initially collapsed and review remains available. With a Synthesizer, verify recommended synthesis and additional instructions remain, but custom decision questions do not.
  8. Use Mark All as Done on the comparison group. Verify the generated group is removed only after every participant is archived, then use Undo and verify the group and eligible membership return. Confirm an ordinary manual group is unaffected.

Validation

  • npm run compile - passed after rebasing onto main.
  • Main focused regression suites - 882 passing, 1 pending.
  • Execution-mode and permission inheritance suites - 15 passing across Interactive, Autopilot, and Plan with all three Copilot approval levels.
  • Additional shared-boundary review suites - 346 passing for ordinary model-picker behavior, normal input, chat list rendering, session-group archive actions, comparison summaries, and provider permission handling.
  • npm run valid-layers-check - passed.
  • Targeted TypeScript type checking - passed.
  • ESLint and repository formatter checks - passed for changed TypeScript files.
  • node build/stylelint.ts src/vs/workbench/contrib/chat/browser/widget/media/chat.css and targeted comparison CSS validation - passed.
  • git diff --check - passed.
  • Rendered and inspected light, dark, and high-contrast component fixtures, including eight Judge/synthesis disclosure fixtures with explicit collapsed-state assertions.
  • Manually verified an existing four-attempt comparison in a 2x2 Code OSS grid and keyboard expansion/collapse with Enter and Space.
  • A complete paid live-provider Judge/synthesis run was not performed.
Main focused regression command
./scripts/test.sh \
  --run src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts \
  --run src/vs/workbench/contrib/chat/test/browser/widget/chatListWidget.test.ts \
  --run src/vs/sessions/contrib/chat/test/browser/chatView.test.ts \
  --run src/vs/sessions/contrib/chat/test/browser/newChatWidget.test.ts \
  --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts \
  --run src/vs/sessions/services/sessions/test/browser/sessionComparisonService.test.ts

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]>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 20:35
@meganrogge Megan Rogge (meganrogge) added this to the 1.141.0 milestone Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 6cf016c9 Current: 9ad89b1a

Changed (3)

sessions/accountMenu/WeeklyAndFiveHourLimits/Light
Before After
before after
sessions/accountMenu/WeeklyLimitOnly/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/DiscoverPluginsLoadingMore/Light
Before After
before after

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

Added (8)

sessions/chat/view/chatView/ComparisonJudgeInstructions/Light

current

sessions/chat/view/chatView/ComparisonSynthesisInstructions/Light

current

sessions/chat/newInput/newChatInput/CompareAttempts/Light

current

sessions/chat/newInput/newChatInput/CompareAttemptsDisabled/Light

current

sessions/compareModels/sessionComparisonModelPicker/RepeatedAttempts/Light

current

sessions/compareModels/sessionComparisonModelPicker/DistinctAttempts/Light

current

sessions/compareModels/sessionComparisonModelPicker/OptionalJudge/Light

current

sessions/compareModels/sessionComparisonModelPicker/OptionalSynthesizer/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.

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 High severity · 2 Medium severity · 1 Low severity

Open (5)
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]>

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.

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 Medium severity

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]>
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review October 3, 2026 00:56
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 3, 2026 00:56
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Sandeep Somavarapu (@sandy081)

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionComparisonService.ts
  • src/vs/sessions/services/sessions/browser/sessionGroupsService.ts
  • src/vs/sessions/services/sessions/browser/sessionsManagementService.ts
  • src/vs/sessions/services/sessions/common/sessionComparison.ts
  • src/vs/sessions/services/sessions/common/sessionsProvider.ts
  • src/vs/sessions/services/sessions/test/browser/sessionComparisonService.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionGroupsService.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionComparisonService.ts
  • src/vs/sessions/services/sessions/browser/sessionGroupsService.ts
  • src/vs/sessions/services/sessions/browser/sessionsManagementService.ts
  • src/vs/sessions/services/sessions/common/sessionComparison.ts
  • src/vs/sessions/services/sessions/common/sessionsProvider.ts
  • src/vs/sessions/services/sessions/test/browser/sessionComparisonService.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionGroupsService.test.ts
  • src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts

@meganrogge
Megan Rogge (meganrogge) marked this pull request as draft October 3, 2026 01:08
auto-merge was automatically disabled October 3, 2026 01:08

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]>
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review October 3, 2026 02:51
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 3, 2026 02:52
@meganrogge Megan Rogge (meganrogge) changed the title sessions: Add guided model comparison setup sessions: Add guided model comparison setup for bakeoff Oct 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants