advanced autopilot: goal mode#320184
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces the first “Advanced Autopilot” setting and wires up goal-mode behavior across the workbench chat UI and the Copilot extension’s Autopilot loop. It adds a “Goal” banner above the input and new advanced continuation logic that relies on a classifier model rather than task_complete.
Changes:
- Adds
chat.autopilot.advanced.enabledand registers it as an experimental configuration switch for Advanced Autopilot behaviors. - Implements a goal-summary service + UI goal banner in the workbench chat widget (including unit tests for summary cleaning).
- Updates the Copilot extension Autopilot loop to support “advanced autopilot” continuation via a goal classifier (async stop hook + new tests).
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/browser/chatGoalSummaryService.test.ts | Adds unit coverage for goal-summary normalization/refusal suppression/truncation. |
| src/vs/workbench/contrib/chat/common/constants.ts | Introduces ChatConfiguration.AutopilotAdvancedEnabled enum entry. |
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css | Styles the new goal banner container and its contents. |
| src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts | Adds goal banner container + lazy widget creation and dismiss event surface. |
| src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.ts | New presentational widget for showing/dismissing the current goal. |
| src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts | Starts/cancels goal-summary requests and updates the banner during Autopilot runs. |
| src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.ts | New service to summarize prompts into a short goal phrase (with caching + cleanup). |
| src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts | Registers the setting and the new goal-summary service singleton. |
| extensions/copilot/src/extension/intents/test/node/toolCallingLoopAutopilot.spec.ts | Updates tests for async stop-hook and adds advanced-autopilot classifier cases. |
| extensions/copilot/src/extension/intents/node/toolCallingLoop.ts | Implements advanced-autopilot continuation via goal classifier and adds user-facing progress reasons. |
Copilot's findings
- Files reviewed: 10/10 changed files
- Comments generated: 2
lszomoru
approved these changes
Jun 6, 2026
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.
first of 2 "advanced" autopilot settings
task_completeas the iteration loop stop