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
glob tool ignores deny rules for matched file paths #35684
glob permission rules can allow a broad query pattern while still denying specific matched file paths, but the tool currently only checks the query pattern before executing.
a glob call with pattern: "**/*.txt" can still return src/secret.txt, because the permission check sees only the query pattern (**/*.txt) and never evaluates the matched file path.
Expected behavior: before returning glob results, path-scoped glob deny rules should be enforced against the matched worktree-relative file paths.
Plugins
None
OpenCode version
Current dev branch
Steps to reproduce
Configure glob permission rules with a broad allow and a more specific denied path, such as "**/secret.txt": "deny".
Create src/secret.txt.
Run the glob tool with a broad pattern such as "**/*.txt".
The denied file can be returned because only the query pattern is checked.
Activity
github-actions commentedon Jul 7, 2026
This issue might be a duplicate of existing issues. Please check:
greptool ignores per-pattern deny permission rules (same root cause: tool checks the query pattern but not matched paths against deny rules)github-actions commentedon Sep 6, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.