Skip to content

external_directory NOT resolving symlinked directory #27601

Closed as not planned
Closed as not planned

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

  1. github-actions commented on May 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. aeiplatform commented on May 14, 2026

    @aeiplatform
    Author

    This issue might be a duplicate of existing issues. Please check:

    No those are not same, this is specific BUG

  3. github-actions commented on Jul 14, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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