Description
If I have the following in my configuration:
"external_directory": {
"*": "ask",
"/tmp/**": "allow",
"~/ide/**": "allow"
}
Will ~/ide/ be resolved as an absolute path?
Because I have
~/ide -> /mnt/c/Users/tomak/IdeaProjects/
$ pwd -P
/mnt/d/tomak/IdeaProjects
Since, in Windows, this path is moved to another drive using a junction.
As while executing opencode it keeps me asking about permissions
Permission required
←
Access external directory /mnt/d/tomak/IdeaProjects/eurowag/azure/CMS/cms
Patterns
- /mnt/d/tomak/IdeaProjects/eurowag/azure/CMS/cms/*
Plugins
"@tarquinen/opencode-dcp@latest", "opencode-claude-auth@latest", "opencode-gemini-auth@latest"
OpenCode version
1.14.48
Steps to reproduce
- Configured based on description
- In windows
C:\Users\tomak IdeaProjects [D:\tomak\IdeaProjects]
- In WSL 2 symlink
~/ide -> /mnt/c/Users/tomak/IdeaProjects/
- Run opencode in that symlinked directory
- Keeps asking about permissions as it resolves absolute path of files
Screenshot and/or share link
No response
Operating System
Windows 11 + WSL 2
Terminal
No response
Description
If I have the following in my configuration:
Will
~/ide/be resolved as an absolute path?Because I have
~/ide -> /mnt/c/Users/tomak/IdeaProjects/Since, in Windows, this path is moved to another drive using a junction.
As while executing opencode it keeps me asking about permissions
Plugins
OpenCode version
1.14.48
Steps to reproduce
C:\Users\tomakIdeaProjects [D:\tomak\IdeaProjects]~/ide -> /mnt/c/Users/tomak/IdeaProjects/Screenshot and/or share link
No response
Operating System
Windows 11 + WSL 2
Terminal
No response