[PR #9813] feat: implement home directory expansion for permission patterns using ~ and $HOME prefixes. #13230

Closed
opened 2026-02-16 18:18:06 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Fixes #9806

What does this PR do?

It adds support for ~ and HOME expansion in permission patterns configured in opencode.jsonc

How did you verify your code works?

  1. I created a test config
  2. I verified the paptterns get expanded
  3. Confirmed [evaluate()]
  4. All 65 existing tests pass + the new 6 tests added
  5. TypeScript typecheck passes
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9813 **State:** closed **Merged:** Yes --- Fixes [#9806 ](https://github.com/anomalyco/opencode/issues/9806) ### What does this PR do? It adds support for `~` and `HOME` expansion in permission patterns configured in `opencode.jsonc` ### How did you verify your code works? 1. I created a test config 2. I verified the paptterns get expanded 3. Confirmed [evaluate()] 4. All 65 existing tests pass + the new 6 tests added 5. TypeScript typecheck passes
yindo added the pull-request label 2026-02-16 18:18:06 -05:00
yindo closed this issue 2026-02-16 18:18:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13230