Permission prompts should display the specific rule or command characteristic that triggered approval
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie bei den Einstiegspunkten für Copilot CLI-Berechtigungsaufforderungen und Befehlsschutzmechanismen; verfolgen Sie, wie Genehmigungsanfragen für die Beispiele Remove-Item, cp und Get-Content erstellt werden. Als erledigt gilt die Aufgabe, wenn jede Aufforderung die Regel oder das Befehlsmerkmal identifiziert, das sie ausgelöst hat, und die genannten Workflows abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli, security
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100