[PR #7856] fix: accept boolean values for permission config #12536

Open
opened 2026-02-16 18:17:26 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7856 **State:** open **Merged:** No --- 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.
yindo added the pull-request label 2026-02-16 18:17:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12536