github / github/copilot-cli

Support a default config file for permissions

Đang mở
#2,398 4 bình luận 13 reaction 0 người được giao Xem trên GitHub
area:configuration area:permissions
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 feature or problem you'd like to solve

Setting permissions for every copilot session is too time consuming

### Proposed solution

The current copilot CLI permissions behavior is detailed, but a bit of a hassle to set up for every session.

I suspect this ends up in two types of common user behaviors

User type A - nearly always runs `/yolo`
User type B - uses a lot of time accepting permissions when copilot CLI requests for it

I'd like to propose a copilot CLI default config file which will controls default permissions to tools, paths, shell commands and urls etc. This way users won't have to set up this for every new copilot session.

The config file should be used by default. The behavior should be overridable via CLI flags. E.g. `copilot --allow-all-urls` will take precedence of whatever is set of allowed urls in the config file. To disable the usage of the config file, a flag which **explicitly** disables reading the global config can be provided for the current session.

### Example prompts or workflows

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.