anomalyco / anomalyco/opencode
Reveal Folder opens wrong directory when repository name is substring of another folder
Open
@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:
- Open D:\projects\ODNF_CORE in OpenCode.
- Use "Reveal Folder".
- OpenCode opens D:\projects\ODNF instead of D:\projects\ODNF_CORE.
Additional verification:
- Rename D:\projects\ODNF to D:\projects\ODNF_DEV.
- Reopen D:\projects\ODNF_CORE.
- Use "Reveal Folder".
- 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
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.