anomalyco / anomalyco/opencode

Desktop project picker: prefix collision — opening "foo-ios" selects/opens "foo"

Open
#40,094 3 comments 1 reaction 1 assignee View on GitHub

@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
  1. Add a directory named vesper to OpenCode Desktop.
  2. Attempt to open a new project and choose a directory named vesper-ios.
  3. Observe that vesper-ios cannot be selected; the picker resolves to vesper instead.
Screenshot and/or share link

Not available.

Operating System

macOS (Apple Silicon)

Terminal

OpenCode Desktop app

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.