anomalyco / anomalyco/opencode

Raw file paths lose URL punctuation in the app

Open
#41,433 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Create a file named notes/why%20now#draft?.md.
  2. Pass that raw relative path through createPathHelpers(...).normalize.
  3. It returns notes/why now instead of the original path.
Screenshot and/or share link

No response

Operating System

Platform-independent

Terminal

Not applicable

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.