-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Describe the bug
On macOS, /tmp is a symlink to /private/tmp. Even when both /tmp and /private/tmp are added to trusted_folders in ~/.copilot/config.json, the CLI still prompts for permission when writing to /tmp subdirectories.
Affected version
1.0.9
Steps to reproduce
- Add
/tmpand/private/tmpto trusted_folders:
{
"trusted_folders": [
"/tmp",
"/private/tmp"
]
}Also tried via copilot config set trusted_folders — same result.
- Restart the CLI
- Ask Copilot to write a file to
/tmp/foo/bar/file.txt - Permission prompt appears:
This action may read or write the following paths outside your allowed directory list.
/tmp/foo/bar/file.txt, /tmp/foo/bar
Expected behavior
No permission prompt should appear since /tmp (and its resolved path /private/tmp) are both in trusted_folders.
Additional context
- macOS:
/tmp→ symlink →/private/tmp - Related: Comprehensive Permissions System Improvements Proposal #307, Copilot should create a ./tmp folder rather than asking permission to use root level /tmp #380
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.