github / github/copilot-cli

preToolUse "ask" feedback is not shown to the agent

未关闭
#2,647 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:permissions area:plugins
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### 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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
powershell, shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
描述清楚
新手友好度
66/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。