[PR #3752] feat: add simplified permission system for external file access #10746

Closed
opened 2026-02-16 18:15:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3752

State: closed
Merged: No


I've vibed a solution to fix #3218 to let user to read/writes files external to cwd instead of simply denying it

Examples:

  1. Ask for permission (default behavior)
{
  $schema: https://opencode.ai/config.json,
  permission: {
    edit: {
      enabled: allow,
      external_files: ask
    }
  }
}
  1. Allow all external file access
{
  $schema: https://opencode.ai/config.json,
  permission: {
    edit: {
      enabled: allow,
      external_files: allow
    }
  }
}

I also asks for permission with option to allow a read for session:

Screenshot 2025-11-02 at 20 18 46

Fixes #3218

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3752 **State:** closed **Merged:** No --- I've vibed a solution to fix #3218 to let user to read/writes files external to cwd instead of simply denying it Examples: 1. Ask for permission (default behavior) ``` { $schema: https://opencode.ai/config.json, permission: { edit: { enabled: allow, external_files: ask } } } ``` 2. Allow all external file access ``` { $schema: https://opencode.ai/config.json, permission: { edit: { enabled: allow, external_files: allow } } } ``` I also asks for permission with option to allow a read for session: <img width="842" height="372" alt="Screenshot 2025-11-02 at 20 18 46" src="https://github.com/user-attachments/assets/06aa9412-e304-4e74-9eaa-c272709e5fc4" /> Fixes #3218
yindo added the pull-request label 2026-02-16 18:15:29 -05:00
yindo closed this issue 2026-02-16 18:15:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10746