anomalyco / anomalyco/opencode
Windows paths with %xx are incorrectly decoded
Open
@Hona is already working on this.
Since Aug 3, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On Windows, opencode cannot run prompts when the workspace path contains a literal sequence that looks URL-encoded, such as %2e or %20.
For example:
C:\Users\example\Documents\Profiles\User%2e%20Name\projects\ExampleProject
The directory really is named User%2e%20Name. It is not a URL-encoded representation of User. Name.
Opencode opens normally and displays the prompt box, but submitting any prompt immediately fails.
Plugins
N/A
OpenCode version
1.18.11
Steps to reproduce
- On Windows, create or use a directory containing literal percent-encoded-looking characters:
C:\Users\example\Documents\Profiles\User%2e%20Name\projects\ExampleProject - Open this directory in opencode.
- Create a session.
- Submit any prompt.
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal, Powershell
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.