github / github/copilot-cli

Permission prompts should display the specific rule or command characteristic that triggered approval

オープン
#4,386 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:permissions
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Copilot CLI の権限プロンプトとコマンドセーフガードのエントリポイントから開始し、Remove-Item、cp、Get-Content の例に対する承認リクエストがどのように作成されるかを追跡します。各プロンプトが、それを発生させたルールまたはコマンドの特性を特定し、記載されたワークフローをカバーしていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli, security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。