Permissions from .claude/settings.json not taken into account (also in v1.0.12!)
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### 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)
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by tracing how .claude/settings.json and .claude/settings.local.json are loaded and how their permissions.allow entries are mapped to Copilot CLI tool permissions. Reproduce with the shown Bash(npx eslint) setting, then verify that asking Copilot to run npx eslint no longer prompts for permission, matching --allow-tool='shell(npx eslint)'.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- authorization, cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100