Skip to content

external_directory NOT resolving symlinked directory #27601

Description

@aeiplatform

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

  1. Configured based on description
  2. In windows C:\Users\tomak IdeaProjects [D:\tomak\IdeaProjects]
  3. In WSL 2 symlink ~/ide -> /mnt/c/Users/tomak/IdeaProjects/
  4. Run opencode in that symlinked directory
  5. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions