github / github/copilot-cli

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

Abierto
#4,386 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:permissions
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en los puntos de entrada de los avisos de permisos y las salvaguardas de comandos de Copilot CLI; sigue cómo se crean las solicitudes de aprobación para los ejemplos de Remove-Item, cp y Get-Content. Se considera terminado cuando cada aviso identifica la regla o característica del comando que lo activó, con cobertura para los flujos de trabajo indicados.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli, security
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.