Agent Skills `allowed-tools` frontmatter specs not respected in non-interactive mode
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
### Describe the bug
**GIVEN** any generic skill like:
```markdown
---
name: greet-user
description: use when a user offers a greeting
allowed-tools:
- bash
- shell
- powershell
- any-other-tool
---
Run the `./scripts/greet.sh`
```
**WHEN** I prompt with "hello" in interactive mode in Copilot
**THEN** It works as expected and the script runs, but
**WHEN** I prompt with "hello" in NON-interactive mode (e.g. `copilot -p "hello"`)
**THEN** I get a ton of `Permission denied and could not request permission from user`
**AND** A ton of wasted tokens, time, and money
### Affected version
1.0.60
### Steps to reproduce the behavior
All in the above description.
### Expected behavior
If a tool is marked as allowed, **IT SHOULD BE ALLOWED.**
### Additional context
_No response_
Guía de contribución
Línea de trabajo
Reproduce el comportamiento con una skill genérica usando el frontmatter allowed-tools mostrado y el punto de entrada no interactivo `copilot -p "hello"`, comparándolo con el modo interactivo. Se considera terminado cuando herramientas permitidas como `bash`, `shell` o `powershell` se ejecutan en modo no interactivo sin errores de permiso denegado ni reintentos repetidos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell
- Área
- authorization, cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 54/100