Skip to content

Commit fa1cb66

Browse files
committed
fix(plan): remove path.relative from plan permission pattern
path.relative() strips the leading slash, making the pattern relative instead of absolute. This breaks permission matching for plan files. Fixes anomalyco#10883
1 parent 843bbc9 commit fa1cb66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/opencode/src/agent/agent.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export namespace Agent {
104104
edit: {
105105
"*": "deny",
106106
[path.join(".opencode", "plans", "*.md")]: "allow",
107-
[path.relative(Instance.worktree, path.join(Global.Path.data, path.join("plans", "*.md")))]: "allow",
107+
[path.join(Global.Path.data, "plans", "*.md")]: "allow",
108108
},
109109
}),
110110
user,

0 commit comments

Comments
 (0)