anomalyco / anomalyco/opencode

Windows paths with %xx are incorrectly decoded

Open
#40,269 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. On Windows, create or use a directory containing literal percent-encoded-looking characters:
    C:\Users\example\Documents\Profiles\User%2e%20Name\projects\ExampleProject
  2. Open this directory in opencode.
  3. Create a session.
  4. Submit any prompt.
Screenshot and/or share link
Image
Operating System

Windows 11

Terminal

Windows Terminal, Powershell

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.