github / github/copilot-cli

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

Aperta
#4,386 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:permissions
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dai punti di ingresso dei prompt di autorizzazione e delle salvaguardie dei comandi di Copilot CLI; traccia come vengono create le richieste di approvazione per gli esempi Remove-Item, cp e Get-Content. Il lavoro è completo quando ogni prompt identifica la regola o la caratteristica del comando che lo ha attivato, con copertura dei workflow indicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli, security
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.