Skip to content

Avoid auto approval for confirmation tool with buttons for background agents#293546

Merged
DonJayamanne merged 1 commit intomainfrom
don/minimal-falcon
Feb 8, 2026
Merged

Avoid auto approval for confirmation tool with buttons for background agents#293546
DonJayamanne merged 1 commit intomainfrom
don/minimal-falcon

Conversation

@DonJayamanne
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 6, 2026 22:28
@DonJayamanne DonJayamanne self-assigned this Feb 6, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review February 6, 2026 22:36
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 6, 2026
Copy link
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 adjusts the chat tools auto-approval logic so that the built-in confirmation tool that presents multiple button options (vscode_get_confirmation_with_options) is never auto-approved, ensuring a user must explicitly choose an option (important for background/agent flows).

Changes:

  • Introduces a special-case tool id that is always ineligible for auto-approval.
  • Updates default confirmation message preparation to omit the “restricted via settings” disclaimer for that tool.
  • Ensures auto-confirm decisions are blocked for that tool even when global auto-approve is enabled.

@DonJayamanne DonJayamanne enabled auto-merge (squash) February 6, 2026 22:52
@DonJayamanne DonJayamanne merged commit f7e2fdc into main Feb 8, 2026
23 of 24 checks passed
@DonJayamanne DonJayamanne deleted the don/minimal-falcon branch February 8, 2026 14:13
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.

2 participants