anomalyco / anomalyco/opencode
Desktop project picker: prefix collision — opening "foo-ios" selects/opens "foo"
@Hona is already working on this.
Since Aug 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In OpenCode Desktop, I cannot open a repository/directory whose name is a string prefix of another directory already added to the project list. Example: I have a repo/dir vesper and another repo/dir vesper-ios. When I open the project picker and try to choose vesper-ios, the app selects vesper instead (or refuses to open vesper-ios entirely).
Expected behavior: Selecting a directory opens exactly that directory, regardless of whether another directory's name is a prefix of it.
Actual behavior: The shorter name matches as a prefix, so the wrong project is opened and I can't work in vesper-ios.
This is distinct from the existing issues about identical project names or directories that share the same git remote (e.g. #34285, #34067, #39676, #36344, #35714) — here the two directories have different names, but one is a string prefix of the other.
Plugins
None relevant.
OpenCode version
N/A — reproduced on the current Desktop beta.
Steps to reproduce
- Add a directory named
vesperto OpenCode Desktop. - Attempt to open a new project and choose a directory named
vesper-ios. - Observe that
vesper-ioscannot be selected; the picker resolves tovesperinstead.
Screenshot and/or share link
Not available.
Operating System
macOS (Apple Silicon)
Terminal
OpenCode Desktop app
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.