github / github/copilot-cli

Feature request: Allow-list specific shell command patterns for tool permissions

未關閉
#3,032 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:permissions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

_No response_

### Proposed solution

Currently, /allow-all is the only way to skip per-invocation confirmation prompts. A more granular option would be useful: the ability
to pre-approve specific command patterns (e.g. uv run path/to/script.py) so that trusted scripts can run without confirmation while
everything else remains at normal permission level.

Use case: a local write-guard script already enforces its own confirmation and audit logging. Copilot adding a
second confirmation on top of the script's own guard creates redundant friction without additional safety benefit.

### Example prompts or workflows

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

No files or tests are named. Start by tracing the existing /allow-all permission and confirmation flow, then determine how command patterns should be matched and what happens for non-matching commands; done means trusted patterns avoid redundant prompts while all other commands retain normal confirmation.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli, security
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。