github / github/copilot-cli

Support a default config file for permissions

Aberta
#2,398 4 comentários 13 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 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_

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start by reading the current copilot CLI permissions behavior and the existing permission-related CLI flags. Define how the default config represents permissions, how command-line flags override it, and how an explicit flag disables global config loading. Done means permissions persist across sessions while overrides remain effective.

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

Avaliação

Stack de tecnologia
shell
Domínio
cli, security
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

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