Permission prompts don't distinguish read-only from write operations outside cwd
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Describe the feature or problem you'd like to solve
When the agent runs any shell command touching a directory outside the working directory, the CLI prompts for full approval of that path — even for provably read-only commands like docker compose ps or docker compose config . This forces users to either grant broader access than needed or manually run harmless diagnostic commands themselves. Please consider a tiered permission model (read vs. write/execute scope), or at minimum surface in the prompt what level of access is actually being exercised.
Proposed solution
Copilot should only ask for the permissions it actually needs. If doesn't need to write to a directory then it shouldn't escalate to get that permission.
Example prompts or workflows
No response
Additional context
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、docker compose ps と docker compose config が作業ディレクトリ外のディレクトリにアクセスする際の権限プロンプトを再現します。CLI が必要なアクセス権をどのように判断するかを追跡し、読み取り専用アクセスと書き込みまたは実行アクセスを区別する、あるいは実際に行われたアクセスレベルを明確に示すために、「完了」の定義を決めます。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker-compose, shell
- 領域
- cli, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100