Permission prompts should display the specific rule or command characteristic that triggered approval
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the feature or problem you'd like to solve
When GitHub Copilot CLI requests permission to execute a command, the prompt does not explain which specific part of the command triggered the safeguard. This makes it difficult to understand why approval is required, evaluate whether the safeguard is behaving correctly, and tune AI behavior to avoid triggering a permission prompt
Proposed solution
Display the specific permission rule(s) or command characteristic(s) that triggered the approval requirement.
Example prompts or workflows
Example 1
Command:
Remove-Item -Recurse .\temp
Reason: Uses Remove-Item
Example 2
Command:
cp file.txt ../other-project/
Reason: Writes outside trusted directory
Example 2
Command:
cp file.txt ../other-project/
Reason: Writes outside trusted directory
Example 3
Command:
Get-Content "$logPath"
Reason: Uses string interpolation
Additional context
Other agent-based coding tools surface the specific action that triggered a permission request. This provides:
- Better transparency
- Greater user trust
- Easier debugging of unexpected prompts
- Improved understanding of permission boundaries
- Better feedback when safeguards are overly broad or overly sensitive
Without this information, users are left guessing which command characteristic caused the approval request and cannot easily determine whether the safeguard behaved as intended.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Copilot CLI 的权限提示和命令防护入口开始;跟踪 Remove-Item、cp 和 Get-Content 示例的审批请求是如何创建的。完成的标准是每个提示都能指出触发它的规则或命令特征,并覆盖所述工作流。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli, security
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100