github / github/copilot-cli

Add launch flag to bypass trust folder prompt

Open
#2,866 5 comments 1 reaction 0 assignees View on GitHub
area:non-interactive area:permissions
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

When automating `copilot` CLI from scripts it would be very helpful to have a way to opt-in to trusting the folder via a launch flag so that the folder doesn't first have to be trusted via an interactive session and answering the prompt manually, or by directly editing the `~\.copilot\config.json` file.

I'm imagining something like:

```
$ copilot --trust-folder --allow-all-tools
```

Related #1121

Contributor guide

Open the contributing guide

Research direction

Start at the copilot CLI's launch argument handling and read related issue #1121 for existing context. Add a launch flag that opts the current folder into trust without an interactive prompt, including when combined with --allow-all-tools. Done means scripted launches can trust the folder without editing config.json or answering prompts manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.