copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

preToolUse "ask" feedback is not shown to the agent

Open sumvalley opened this issue 7 months ago • 1 comments

Describe the bug

Copilot permission system allows the user to "tell copilot what to do differently" when a permission request pops up and the user doesn't want to allow it. However, the same functionality does not work with preToolUse hooks that return the "ask" permissionDecision.

Affected version

GitHub Copilot CLI 1.0.24

Steps to reproduce the behavior

  1. Create a preToolUse hook that returns an "ask" permissionDecision
  2. Ask the agent to do something that would trigger the hook.
  3. Instead of allowing the tool, fill out the part that tells the agent what to do differently.
  4. The agent will know the tool was denied, but won't see the message written by the user.

Expected behavior

The user's message in the denial field should be shown to the agent, just like for a normal permission prompt.

Additional context

  • Operating System: Windows 10
  • Terminal: Terminal App
  • Architecture: x64
  • Shell: Powershell

sumvalley avatar Apr 11 '26 18:04 sumvalley

This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

copilot-cli-bot[bot] avatar Sep 25 '26 10:09 copilot-cli-bot[bot]