Skip to content

How do you configure opencode to always be allowed to read all files in a certain directory #10848

@todor-a

Description

@todor-a

Question

I have the following project structure:

- projects
  - personal
    - foo
    - bar
    - baz

I run opencode from personal/bar and ask it to reference something in personal/foo.

My config at ~/.config/opencode/opencode.json is:

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "opencode",
  "autoupdate": true,
  "permission": {
  "read": {
    "~/projects/personal/**": "allow"
  }
}

And despite having the ~/projects/personal/** in there, I always get asked to confirm that it's okay to read files. What am I doing wrong?

P.S. When you select always allow when prompted, where is that stored?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions