Skip to content

advanced autopilot: goal mode#320184

Merged
justschen merged 2 commits into
mainfrom
justin/stufful
Jun 6, 2026
Merged

advanced autopilot: goal mode#320184
justschen merged 2 commits into
mainfrom
justin/stufful

Conversation

@justschen
Copy link
Copy Markdown
Collaborator

@justschen justschen commented Jun 5, 2026

first of 2 "advanced" autopilot settings

  • when enabled, it replaces task_complete as the iteration loop stop
  • gated behind a setting
  • sets up risk assessments for all tools calls

Copilot AI review requested due to automatic review settings June 5, 2026 21:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.enabled and 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

Comment thread src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts
Comment thread src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.ts
@justschen justschen marked this pull request as ready for review June 6, 2026 03:54
@justschen justschen merged commit 6a4e80f into main Jun 6, 2026
39 of 40 checks passed
@justschen justschen deleted the justin/stufful branch June 6, 2026 07:27
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants