opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: accept boolean values for permission config

Open itstrivial opened this issue 3 days ago • 2 comments

Fixes #7810

What does this PR do?

Users may now use boolean true/false instead of "allow"/"deny" for permissions. This adds a preprocess step to convert booleans automatically, consistent with how tools config already handles this.

How did you verify your code works?

I created .opencode/agent/testing.md with the following permissions:

---
description: Test agent
mode: subagent
tools:
  read: true
permission:
  write: false
---

I then launched OpenCode in my project directory. It now launches successfully and does not hang like before.

itstrivial avatar Jan 11 '26 19:01 itstrivial