preToolUse "ask" feedback is not shown to the agent
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start at the preToolUse hook handling for a permissionDecision of "ask" and compare it with the normal permission prompt's denial-message path. Reproduce the issue with a hook returning "ask", then verify that the user's denial text is delivered to the agent, using existing permission or hook tests if available.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- powershell, shell
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 66/100