anomalyco / anomalyco/opencode
Raw file paths lose URL punctuation in the app
Open
@rekram1-node is already working on this.
Since Aug 9, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The app's file path normalizer treats every input as a file URL. Raw filesystem paths containing # or ? are truncated, while literal percent sequences such as %20 are decoded.
This can make files with valid URL-reserved characters impossible to open under their real name. URL parsing should apply only to file:// inputs; raw paths should remain literal.
Plugins
None
OpenCode version
Current dev (0bff28de09105088ff5bdefab91413d55c28dff1)
Steps to reproduce
- Create a file named
notes/why%20now#draft?.md. - Pass that raw relative path through
createPathHelpers(...).normalize. - It returns
notes/why nowinstead of the original path.
Screenshot and/or share link
No response
Operating System
Platform-independent
Terminal
Not applicable
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.