anomalyco / anomalyco/opencode

Reveal Folder opens wrong directory when repository name is substring of another folder

Open
#48,986 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 14, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Environment:

  • Windows 11
  • OpenCode version: x.y.z

Folder structure:

D:\projects
├─ ODNF
└─ ODNF_CORE

Steps to reproduce:

  1. Open D:\projects\ODNF_CORE in OpenCode.
  2. Use "Reveal Folder".
  3. OpenCode opens D:\projects\ODNF instead of D:\projects\ODNF_CORE.

Additional verification:

  1. Rename D:\projects\ODNF to D:\projects\ODNF_DEV.
  2. Reopen D:\projects\ODNF_CORE.
  3. Use "Reveal Folder".
  4. No folder is opened.

Expected behavior:

Reveal Folder should always open the workspace path:
D:\projects\ODNF_CORE

Actual behavior:

OpenCode appears to resolve the repository name (ODNF) and opens a different folder whose name matches the repository name.

git rev-parse --show-toplevel
 
Output:
D:/projects/ODNF_CORE
``

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.