Skip to content

Conversation

@connor4312
Copy link
Member

Adds display of a localized 'Approve tool result?' message when a chat
response is waiting for post-approval confirmation on a tool invocation.

  • Updates ChatResponseModel to detect WaitingForPostApproval state
  • Displays appropriate confirmation message to user during tool approval
  • Improves UX by providing clear feedback on what action is needed

(Commit message generated by Copilot)

Adds display of a localized 'Approve tool result?' message when a chat
response is waiting for post-approval confirmation on a tool invocation.

- Updates ChatResponseModel to detect WaitingForPostApproval state
- Displays appropriate confirmation message to user during tool approval
- Improves UX by providing clear feedback on what action is needed

(Commit message generated by Copilot)
Copilot AI review requested due to automatic review settings January 29, 2026 19:32
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 pull request adds a localized user-facing message to display when a chat response is waiting for post-approval confirmation on a tool invocation. The change improves the UX by providing clear feedback to users about what action is needed.

Changes:

  • Adds detection of WaitingForPostApproval state in the ChatResponseModel class
  • Returns a localized message "Approve tool result?" when in this state
  • Follows the same pattern used for WaitingForConfirmation state

Comment on lines +1033 to +1035
if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
return localize('waitingForPostApproval', "Approve tool result?");
}
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change adds a localized message for the WaitingForPostApproval state, but there's no test coverage for this new behavior. The existing test in chatModel.test.ts (lines 692-739) only tests the WaitingForConfirmation state. Consider adding a similar test case that verifies isPendingConfirmation.detail returns the correct message when a tool is in WaitingForPostApproval state.

Copilot uses AI. Check for mistakes.
@connor4312 connor4312 enabled auto-merge (squash) January 29, 2026 19:43
@connor4312 connor4312 merged commit c026062 into main Jan 29, 2026
27 of 28 checks passed
@connor4312 connor4312 deleted the connor4312/chat-post-approval-ui branch January 29, 2026 19:52
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