You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read permission doesn't look to match when the agent uses ../.. paths #11059
The reason for this change is I created a skill that comes with docs/resources, and needs to search and read the files in the skill. The issue I am seeing is that the agent asks to read
I then tried a simple prompt, show absolute path and asked it to read the file, and made sure to put the exact path in the read permissions; same issue.
"/path/to/file": "allow"
and prompt: read "/path/to/file" and tell me what it says
In this cases its also doing the ../.. read pattern and correctly detecting that its reading outside of the current directory and asked for permission.
The core issue appears to be that permission rules are not matching when paths are normalized to relative formats (with ../..) instead of being resolved to absolute paths. Feel free to ignore if your specific case differs from these.
Activity
github-actions commentedon Jan 28, 2026
This issue might be a duplicate of existing issues. Please check:
The core issue appears to be that permission rules are not matching when paths are normalized to relative formats (with ../..) instead of being resolved to absolute paths. Feel free to ignore if your specific case differs from these.
dcapwell commentedon Jan 29, 2026
I have tried the following, but don't see any difference (tried with and without
*)Still asking for read permission
dcapwell commentedon Jan 29, 2026
ok found the doc on this: https://opencode.ai/docs/permissions#external-directories
Using that and the permissions are fixed!