github / github/copilot-cli

Permissions from .claude/settings.json not taken into account (also in v1.0.12!)

Aberta
#2,338 3 comentários 2 reações 0 responsáveis Ver no GitHub
area:configuration area:permissions
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the bug

Release notes for v1.0.12 say:

> Read .claude/settings.json and .claude/settings.local.json as additional repo config sources

With following `.claude/settings.json`:

```json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": { "allow": ["Bash(npx eslint)"] }
}
```

Asking copilot to run npx eslint still pops up a permission question to the user.

Running `copilot --allow-tool='shell(npx eslint)'` does work as expected however.

### Affected version

GitHub Copilot CLI 1.0.12

### Steps to reproduce the behavior

1. Put following json in `.claude/settings.json`:
```json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": { "allow": ["Bash(npx eslint)"] }
}
```
2. Run `copilot`
3. Ask "please run npx eslint"
4. Observe that copilot asks the user for permission

### Expected behavior

Copilot should not ask the user for permission, just like when running `copilot --allow-tool='shell(npx eslint)'`

### Additional context

OS: Windows
Terminal: Windows Terminal
Shell: Git Bash and Powershell (both tested)

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

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