Skip to content

agentHost: ask for consent when Copilot extensions request permissions - #346395

Merged
Connor Peet (connor4312) merged 2 commits into
mainfrom
connor4312/10615
Nov 5, 2026
Merged

Connor Peet (connor4312) merged 2 commits into
mainfrom
connor4312/10615

Conversation

@connor4312

Copy link
Copy Markdown
Member

agentHost: ask for consent when Copilot extensions request permissions

The Copilot runtime asks for consent when an extension declares privileged capabilities, such as
hooks. This request has no tool call, so the agent host rejected it without asking the user, and
extensions such as grove-agent-monitor did not load.

  • Handles extension-permission-access requests before the missing-toolCallId check. The check
    stays for all other permission kinds.
  • Holds a request until a turn is ready to show it, then shows a confirmation in that turn:
    Allow Once, Always Allow, Not Now and Never. Only disposal of the session ends the wait. Allow
    All approves the request, and Autopilot declines it.
  • Adds the host setting extensionPermissionApprovals. Always Allow and Never are kept there for
    each extension name and set of capabilities, so a request for more capabilities asks again. The
    runtime does not keep approvals when a session resumes.
  • Moves the MCP skill confirmation into a shared helper, _confirmEphemerally. The helper keeps
    the Always Allow and Never decisions, and keeps the turn open until the user answers.
  • Emits the confirmation as a trusted root-turn action, so that it is not dropped after an abort
    before the next SDK turn starts.

Fixes https://github.com/microsoft/vscode-internalbacklog/issues/10615

(Commit message generated by Copilot)

Loading
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.

4 participants