Describe the bug
I have several directories listed in my permissions-config for various workspaces. They are never loaded. I can run /list-dirs and never see them.
{
"locations": {
"/workspaces/cbreymdev": {
"allowed_directories": [
"/opt/test",
"/tmp"
]
},
...
still results in:
Allowed directories for file access:
1. /workspaces/cbreymdev
2. /tmp
3. /home/vscode/.copilot/installed-plugins
Affected version
1.0.79-6
Steps to reproduce the behavior
sudo mkdir /opt/test
sudo chmod a+rwx /opt/test
mkdir /opt/test/workspace
mkdir /opt/test/subject
echo "Can you read me?" > /opt/test/subject/file.txt
jq '.locations += {"/opt/test/workspace": { "allowed_directories": [ "/opt/test/subject"] }}' ~/.copilot/permissions-config.json > /tmp/permissions-config.json
cp /tmp/permissions-config.json ~/.copilot/permissions-config.json
cd /opt/test/workspace
- run
copilot interactively
- prompt
/list-dirs. Observe that "/opt/test/subject" is not present.
- prompt "What does /opt/test/subject/file.txt" contain?. Observe a permission prompt.
Expected behavior
In step 10, the listing should container /opt/test/subject.
In step 11, it should report the contents of /opt/test/subject/file.txt
Additional context
No response
Describe the bug
I have several directories listed in my permissions-config for various workspaces. They are never loaded. I can run
/list-dirsand never see them.still results in:
Affected version
1.0.79-6
Steps to reproduce the behavior
sudo mkdir /opt/testsudo chmod a+rwx /opt/testmkdir /opt/test/workspacemkdir /opt/test/subjectecho "Can you read me?" > /opt/test/subject/file.txtjq '.locations += {"/opt/test/workspace": { "allowed_directories": [ "/opt/test/subject"] }}' ~/.copilot/permissions-config.json > /tmp/permissions-config.jsoncp /tmp/permissions-config.json ~/.copilot/permissions-config.jsoncd /opt/test/workspacecopilotinteractively/list-dirs. Observe that "/opt/test/subject" is not present.Expected behavior
In step 10, the listing should container /opt/test/subject.
In step 11, it should report the contents of /opt/test/subject/file.txt
Additional context
No response