github / github/copilot-cli

Feature request: Persistent directory allow list across sessions

Open
#3,050 0 comments 11 reactions 0 assignees View on GitHub
area:configuration area:permissions
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

## Summary

When starting a new Copilot CLI session, I'm repeatedly prompted to allow directories I've already approved in previous sessions. The directory permissions don't persist across sessions.

## Current behavior

Each new session requires re-approving directories via `/add-dir` or `/allow-all`, even though `permissions-config.json` already stores tool approvals per directory.

## Expected behavior

Directories that have been previously allowed should be remembered across sessions, either via:
- A persistent allow list in `~/.copilot/settings.json` or `permissions-config.json`
- An option to mark directories as 'always allowed'
- Auto-allowing directories that already have tool approvals configured

## Workaround

Running `/allow-all` at the start of each session, or launching from the target directory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.