Skip to content

Conversation

@KoalaHao
Copy link

@KoalaHao KoalaHao commented Jan 8, 2026

@rekram1-node here is a quick fix, all changes made in opencode itself
#7279

@KoalaHao KoalaHao requested a review from adamdotdevin as a code owner January 8, 2026 03:41
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Fix permission matching to work correctly on Windows by normalizing path
separators to forward slashes before pattern matching.

Changes:
- Wildcard.match() now normalizes both input and pattern to forward slashes
- PermissionNext.fromConfig() normalizes config patterns on load
- Added 24 comprehensive tests for Windows path scenarios

This allows configs to use either / or \ and work seamlessly across all
platforms (Windows, Linux, macOS). Users can paste Windows paths directly
into configs without manual conversion.

Fixes: Permission patterns like 'openspec/*' now correctly match Windows
paths like 'openspec\api.yaml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants