opencode-hashline icon indicating copy to clipboard operation
opencode-hashline copied to clipboard

edit permissions broken

Open draxxris opened this issue 4 months ago • 1 comments

Define an agent with the permissions below and it will not be able to write or edit files in the plans/*.md path with this plugin enabled.

---
name: Architect
description: Planning agent for creating implementation plan document
mode: primary
permission:
  bash:
    "mkdir plans": allow
    "mkdir -p plans": allow
    "ls plans/": allow
  edit:
    "*": deny
    "plans/*.md": allow
---

Something...

draxxris avatar Jul 11 '26 20:07 draxxris

Thanks for reporting this! I've opened a PR to fix the issue where edit permissions weren't being applied correctly to the plans/*.md path. This should now allow the agent to write and edit files as expected.

PR: https://github.com/AngDrew/opencode-hashline/pull/7

webbrain-one avatar Aug 08 '26 23:08 webbrain-one