Repository navigation
agent bakeoff - #335498
agent bakeoff#335498Megan Rogge (meganrogge) merged 121 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Provenance restoration, file-overlap calculation, composer configuration forwarding, accessibility, layout, and test coverage need correction.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 7
New issues introduced by this change (8)
| Severity | Finding |
|---|---|
src/vs/sessions/contrib/chat/browser/newChatInput.ts — Setting a visible label here does not resize the existing send control:… |
|
src/vs/sessions/contrib/chat/browser/newChatWidget.ts — The launch drops two values that this PR defines as shared: neither the composer's selected branch… |
|
src/vs/sessions/contrib/chat/browser/newChatWidget.ts — All coordinator/provider/worktree failures reach this catch, but they are only logged, so the user… |
|
src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts — When a provider omits the optional pre-creation snapshot API, modelResolution is undefined and… |
|
src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.ts — This map only preserves provenance for the lifetime of the provider. After a window/provider reload… |
|
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonEditor.ts — This new focusable, information-rich editor has no editor-focused accessibility help provider,… |
|
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonEditor.ts — These keys are absolute paths inside each attempt's isolated worktree. The same repository-relative… |
|
src/vs/sessions/services/sessions/browser/sessionComparisonService.ts — There are no focused tests for this new lifecycle service, despite neighboring Sessions browser… |
What changed in this PR
Adds provider-neutral multi-agent attempt comparisons to the Agents window.
Changes:
- Adds multi-harness comparison selection and shared-model validation.
- Orchestrates isolated attempts, judging, synthesis, persistence, and cleanup.
- Adds a comparison editor plus provider provenance/model-discovery support.
| File | Description |
|---|---|
src/vs/sessions/sessions.common.main.ts |
Loads comparison contributions and service. |
src/vs/sessions/SESSION_COMPARISONS.md |
Documents comparison architecture and lifecycle. |
src/vs/sessions/services/sessions/common/sessionsProvider.ts |
Extends provider creation and model-discovery contracts. |
src/vs/sessions/services/sessions/common/sessionsManagement.ts |
Adds parent-session creation provenance. |
src/vs/sessions/services/sessions/common/sessionComparison.ts |
Defines comparison models and service API. |
src/vs/sessions/services/sessions/browser/sessionsManagementService.ts |
Forwards session provenance to providers. |
src/vs/sessions/services/sessions/browser/sessionComparisonService.ts |
Implements orchestration, persistence, synthesis, and cleanup. |
src/vs/sessions/README.md |
Links the comparison specification. |
src/vs/sessions/contrib/sessionComparison/common/sessionComparison.ts |
Defines the comparison-opening command. |
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonTool.ts |
Adds the Judge verdict tool. |
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonEditorInput.ts |
Adds restorable comparison editor input. |
src/vs/sessions/contrib/sessionComparison/browser/sessionComparisonEditor.ts |
Renders evidence and comparison actions. |
src/vs/sessions/contrib/sessionComparison/browser/sessionComparison.contribution.ts |
Registers editor, tool, command, and setting. |
src/vs/sessions/contrib/sessionComparison/browser/media/sessionComparisonEditor.css |
Styles the comparison editor. |
src/vs/sessions/contrib/providers/copilotChatSessions/test/browser/copilotChatSessionsProvider.test.ts |
Tests Copilot provenance and model discovery. |
src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.ts |
Implements Copilot provenance and creation-time models. |
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts |
Tests Agent Host provenance and models. |
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Forwards provenance and exposes creation models. |
src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts |
Adds comparison mode and multi-selection. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Documents comparison keyboard interaction. |
src/vs/sessions/contrib/chat/browser/newChatWidget.ts |
Launches comparisons from the composer. |
src/vs/sessions/contrib/chat/browser/newChatInput.ts |
Supports dynamic attempt-count send labels. |
build/lib/i18n.resources.json |
Registers comparison localization resources. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
four substantive gaps and would not approve the current head (
Additional gap: partially failed comparisons are misleading in the result UI. Failed-launch attempts are excluded from the Judge verdict but included among “other attempts,” where they appear as “No distinct strong points reported” rather than showing their launch failure. (Generated by Copilot) |
a254912 to
033fdb1
Compare
Add a multi-harness comparison workflow with isolated child sessions, provider-owned shared-model resolution, visible judging, evidence review, synthesis, and explicit cleanup.\n\nFixes microsoft#335085\n\nCo-authored-by: Copilot <[email protected]>
Preserve comparison configuration and provenance, make comparison evidence and controls accessible, normalize worktree changes, and add lifecycle regression coverage. Co-authored-by: Copilot <[email protected]>
Format comparison sources, preserve provider option shapes when provenance is absent, and compare persisted creation references through their public URI representation. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Represent comparisons as uniquely identified attempts with provider-local model selection. Add a focused setup dialog, shared-context and usage disclosures, and keep synthesis explicit. Co-authored-by: Copilot <[email protected]>
Improve the parallel-attempt setup and comparison hierarchy, add structured Judge evidence and verdict tools, and record provider-neutral token usage with OTel correlation.\n\nCo-authored-by: Copilot <[email protected]>
Make the Judge review every attempt and record validation provenance, then surface a recommendation-first result with explicit human review routing. Co-authored-by: Copilot <[email protected]>
Open live attempt sessions in an adaptive grid while work is active, then return to the standard comparison editor when all attempts are terminal. Co-authored-by: Copilot <[email protected]> Copilot-Session: ae987bcc-580a-4ea6-8789-828cf5d1d6fa
Load Judge instructions from a packaged prompt, open the comparison when judging completes, and present a winner-focused result with deterministic synthesis evidence. Co-authored-by: Copilot <[email protected]>
Keep comparison participants visually connected, preserve progress visibility, hide stale details on participant navigation, and place winner/synthesis actions at the end of completed results. Co-authored-by: Copilot <[email protected]>
Replace the standalone comparison editor with a participant grid and a Judge-owned result card. Keep custom dialog controls in the keyboard focus loop so attempt agent and model selectors are operable without a mouse.\n\nCo-authored-by: Copilot <[email protected]>
Choose comparison grid columns from the number of active attempts so four sessions form a 2x2 grid, six form 3x2, and nine form 3x3. Keep phone layouts in a single column. Co-authored-by: Copilot <[email protected]> Copilot-Session: ae987bcc-580a-4ea6-8789-828cf5d1d6fa
Show Judge and synthesis before attempt sessions in both the list and tiled grid. Keep group connector decoration limited to implementation attempts.\n\nCo-authored-by: Copilot <[email protected]>
Constrain the element measured by DomScrollableElement so additional attempt rows activate the custom scrollbar.\n\nCo-authored-by: Copilot <[email protected]>
Ensure setup groups, result actions, and compact comparison attempts expose names that match their visible presentation. Co-authored-by: Copilot <[email protected]>
Make attempt validation use authoritative worktrees, represent inapplicable validation explicitly, and allow rejected verdicts to be corrected. Repair the affected test and fixture infrastructure exposed by CI. Co-authored-by: Copilot <[email protected]>
Prevent verdict submission failures caused by models mistyping or combining participant and session UUIDs. Map manifest attempt numbers back to internal participant IDs when persisting the verdict. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Observable grid restoration, failed-launch retry behavior, and incomplete token metrics can currently produce incorrect or disrupted comparison behavior.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (4)
Resolved since last review (8)
These keys are absolute paths inside each attempt's isolated worktree. The same repository-relative… This new focusable, information-rich editor has no editor-focused accessibility help provider,… This map only preserves provenance for the lifetime of the provider. After a window/provider reload… When a provider omits the optional pre-creation snapshot API,modelResolutionisundefinedand… All coordinator/provider/worktree failures reach this catch, but they are only logged, so the user… The launch drops two values that this PR defines as shared: neither the composer's selected branch… Setting a visible label here does not resize the existing send control:… There are no focused tests for this new lifecycle service, despite neighboring Sessions browser…
Co-authored-by: Copilot <[email protected]> Copilot-Session: 539210bd-556f-4d13-b55a-b9f0615b613d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 539210bd-556f-4d13-b55a-b9f0615b613d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 539210bd-556f-4d13-b55a-b9f0615b613d
c9f0348
Co-authored-by: Copilot <[email protected]> Copilot-Session: 539210bd-556f-4d13-b55a-b9f0615b613d
This reverts the portions of commit d838bdb that apply cleanly. Co-authored-by: Copilot <[email protected]>
Preserve changes that landed after #335498 while removing the comparison-specific code from the conflicted Agent Host and Sessions surfaces. Co-authored-by: Copilot <[email protected]>
Preserve changes that landed after #335498 while removing comparison-specific code from the conflicted Agent Host and Sessions surfaces. Keep the Git remote state contract consumed by later multi-folder work and reconcile affected test infrastructure. Co-authored-by: Copilot <[email protected]>
Preserve changes that landed after #335498 while removing comparison-specific code from the conflicted Agent Host and Sessions surfaces. Keep the Git remote state contract consumed by later multi-folder work and reconcile affected test infrastructure. Co-authored-by: Copilot <[email protected]>
This reverts the portions of commit d838bdb that apply cleanly. Co-authored-by: Copilot <[email protected]>
Preserve changes that landed after #335498 while removing comparison-specific code from the conflicted Agent Host and Sessions surfaces. Keep the Git remote state contract consumed by later multi-folder work and reconcile affected test infrastructure. Co-authored-by: Copilot <[email protected]>
Preserve changes that landed after #335498 while removing comparison-specific code from the conflicted Agent Host and Sessions surfaces. Keep the Git remote state contract consumed by later multi-folder work and reconcile affected test infrastructure. Co-authored-by: Copilot <[email protected]>
* Revert "agent bakeoff (#335498)" This reverts the portions of commit d838bdb that apply cleanly. Co-authored-by: Copilot <[email protected]> * sessions: Resolve agent bakeoff revert conflicts Preserve changes that landed after #335498 while removing comparison-specific code from the conflicted Agent Host and Sessions surfaces. Keep the Git remote state contract consumed by later multi-folder work and reconcile affected test infrastructure. Co-authored-by: Copilot <[email protected]> * Fix tabbed model picker call sites --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Anthony Kim <[email protected]>





Fixes #335085
Fixes https://github.com/microsoft/vscode-internalbacklog/issues/9405
Adds
sessions.chat.compareAgents.enabledoff by defaultSummary
sessions.chat.compareAgents.enabledexperimentUX
Comparison · Review readywhen the Judge submits a verdict.The prompt and attached context are frozen when the comparison launches. Judge recommendations remain advisory. Synthesis and worktree cleanup are always explicit, and no attempt is automatically applied or deleted.
Reviewer notes
Comparison records are provider-neutral and persisted in profile storage. Setup is represented as an array of uniquely identified attempts rather than a map keyed by harness, allowing different models from one harness or repeated runs of the same configuration.
Model identifiers remain provider-local and the UI displays provider-owned model labels. There is intentionally no equivalent-model-across-providers behavior.
Attempts, the Judge, and explicit synthesis are ordinary sibling sessions in one comparison group. The Judge is the automatic machine-review stage; Review Recommended Attempt is the explicit human verification stage. New verdicts distinguish attempt-reported validation, Judge-run validation, and unavailable evidence. Existing persisted verdicts remain compatible.
Validation
npm run transpile-clientnpm run typecheck-clientnpm run valid-layers-checkgit diff --checkFixes #335085
Architecture flow
flowchart LR Setup[Choose attempt agents/models<br/>and Judge] -->|Run in parallel| Attempts[Attempts<br/>isolated worktrees] Attempts -->|All terminal| Judge[Judge session<br/>review every diff] Judge -->|1. readAttemptComparison| Evidence[Bounded cross-attempt manifest] Evidence -.->|2. get_session_context<br/>for deeper transcript evidence| Judge Judge -.->|3. targeted tests/build/lint<br/>when evidence is missing| Validation[Validation evidence] Validation --> Judge Judge -->|4. completeAttemptComparison<br/>exactly once| Results[Recommendation<br/>provenance and conflicts] Results -->|Review Recommended Attempt| Review[Attempt session<br/>and Changes editor] Results -->|Optional| Synthesis[Synthesis session]Comparison telemetry records only attempt elapsed time, model configuration, and the Judge selection. Provider-native OTel chat spans supply token consumption for analysis. Neither path records cost or task content.
Comparison telemetry
Comparison telemetry records one elapsed-time event when an attempt's first turn becomes terminal and one model-outcome event after the Judge submits a verdict. Provider-native OTel chat spans carry token usage. The OTel trace anchor and both VS Code events use the same hashed comparison ID and successful-attempt index, so the datasets can be correlated without copying provider token counts into VS Code telemetry. It does not include prompts, responses, diffs, file paths, commands, workspace details, validation outcomes, or cost. Provider IDs are reduced to bounded categories (
default-copilot,local-agent-host,remote-agent-host, orother).agents/sessionComparisonAttemptCompletedgen_ai.usage.input_tokensandgen_ai.usage.output_tokenson chat spans in the attempt trace; the trace anchor carries the hashed comparison ID and attempt index.agents/sessionComparisonModelOutcomeJoining the two VS Code events and the provider-native OTel trace supports aggregate questions such as which models are compared most often, which are selected most often by the Judge, and how first-turn time or token consumption correlates with that selection. Because task content is intentionally omitted, these are directional correlations rather than claims about model quality for a particular task category.
Judge tools
readAttemptComparisonget_session_contextcompleteAttemptComparison