-
Notifications
You must be signed in to change notification settings - Fork 12k
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
Description
I have the following opencode.json configuration
"$schema": "https://opencode.ai/config.json",
"permission": {
"external_directory": "ask",
"read": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"appsettings.json": "deny",
"appsettings.*.json": "deny",
"secrets.json": "deny"
},
"bash": {
"*": "allow",
"git *": "ask",
"gh *": "ask",
"az *": "ask",
"rm -rf *": "deny",
"dotnet user-secrets *": "deny",
"docker *": "ask",
"curl *": "ask"
},
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true
},
"grep_app": {
"type": "remote",
"url": "https://mcp.grep.app",
"enabled": true
}
}
}
and asked Opencode to validate the format of the .env and appsettings.json files in my project.
Opencode correctly detects that it does not have permission to read the .env file and does not access it. However, for appsettings.json, it reports that it does not have permission but then proceeds to read the file anyway.
Plugins
No response
OpenCode version
1.2.20
Steps to reproduce
No response
Screenshot and/or share link
Operating System
macOS Tahoe 26.3
Terminal
Ghostty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)