github / github/copilot-cli

Agent Skills `allowed-tools` frontmatter specs not respected in non-interactive mode

Aberta
#3,699 1 comentário 0 reações 0 responsáveis Ver no GitHub
area:non-interactive area:permissions area:plugins
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Reproduce the behavior with a generic skill using the shown allowed-tools frontmatter and the non-interactive `copilot -p "hello"` entry point, comparing it with interactive mode. Done means allowed tools such as `bash`, `shell`, or `powershell` run without permission-denied errors or repeated retries in non-interactive mode.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
shell
Domínio
authorization, cli
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
54/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.