Skip to content

Conversation

@joshspicer
Copy link
Member

@joshspicer joshspicer commented Nov 15, 2025

Copilot AI review requested due to automatic review settings November 15, 2025 03:36
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 15, 2025
Copilot finished reviewing on behalf of joshspicer November 15, 2025 03:38
@joshspicer joshspicer enabled auto-merge (squash) November 15, 2025 03:44
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 fixes an edge case where previously approved tools could bypass the eligibility check defined by the chat.tools.eligibleForAutoApproval configuration setting. The fix ensures that tools explicitly marked as ineligible for auto-approval will never be auto-confirmed, even if the user had previously approved them.

Key Changes

  • Added an early eligibility check in shouldAutoConfirm() before checking for previous user approvals
  • Removed a TODO comment that is now obsolete since the issue it mentioned has been addressed

@joshspicer joshspicer merged commit 3ced257 into main Nov 15, 2025
33 of 34 checks passed
@joshspicer joshspicer deleted the joshspicer/alreadyapproved-loophole branch November 15, 2025 04:26
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