Skip to content

Conversation

@joshspicer
Copy link
Member

Copilot AI review requested due to automatic review settings November 15, 2025 03:54
@joshspicer
Copy link
Member Author

@connor4312 i think it's ok to add my !disclaimer here, but flagging in case you think otherwise

@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:56
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 adds a disclaimer message to tool confirmation dialogs when the eligibleForAutoApproval setting restricts a tool from being auto-approved. The disclaimer informs users which setting is preventing auto-approval.

Key changes:

  • Adds a disclaimer field to confirmation messages for tools that are not eligible for auto-approval
  • Updates the UI rendering logic to display disclaimers when present
  • Changes the default confirmation message text from "Run the" to "Run the '{0}' tool?"

Reviewed Changes

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

File Description
src/vs/workbench/contrib/chat/browser/languageModelToolsService.ts Adds disclaimer to tool confirmation messages when isEligibleForAutoApproval is false, showing which setting restricts auto-approval
src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.ts Updates rendering logic to use the complex rendering path (instead of simple string) when a disclaimer is present

@joshspicer joshspicer enabled auto-merge (squash) November 15, 2025 05:44
@joshspicer joshspicer merged commit 408f6bb into main Nov 15, 2025
33 of 34 checks passed
@joshspicer joshspicer deleted the joshspicer/disclaimer-isToolEligibleForAutoApproval branch November 15, 2025 06:31
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