Skip to content

support autopilot mode#4055

Merged
justschen merged 13 commits intomainfrom
justin/archeops
Mar 4, 2026
Merged

support autopilot mode#4055
justschen merged 13 commits intomainfrom
justin/archeops

Conversation

@justschen
Copy link
Copy Markdown
Contributor

checks for tool calls, loops on max requests

ref microsoft/vscode#296691

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

Adds support for an “autopilot” permission level in chat requests and adapts the tool-calling loop behavior to continue iterating without user confirmation, aiming to keep the agent running until explicit completion.

Changes:

  • Introduces permissionLevel on ChatRequest (private proposed API) to convey auto-approval/autopilot behavior.
  • Updates ToolCallingLoop to (a) extend the max-iteration limit automatically for autoApprove/autopilot, and (b) add an internal “autopilot stop hook” that tries to continue until task_complete.
  • Filters task_complete out of tool lists outside autopilot mode.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/extension/vscode.proposed.chatParticipantPrivate.d.ts Adds permissionLevel to ChatRequest to signal auto-approval/autopilot behavior.
src/extension/intents/node/toolCallingLoop.ts Extends iteration limits for auto-approval modes and adds an autopilot continuation mechanism based on task_complete.

Comment thread src/extension/intents/node/toolCallingLoop.ts Outdated
Comment thread src/extension/intents/node/toolCallingLoop.ts
Comment thread src/extension/intents/node/toolCallingLoop.ts
Comment thread src/extension/intents/node/toolCallingLoop.ts
@justschen justschen marked this pull request as ready for review March 4, 2026 20:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.111.0 milestone Mar 4, 2026
@justschen justschen added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit 5a9234f Mar 4, 2026
19 checks passed
@justschen justschen deleted the justin/archeops branch March 4, 2026 22:01
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