Skip to content

[BUG]: Open Project search excludes known projects outside five most recent #39142

Description

@agustaf9

Description

The Open Project dialog only searches the five projects currently shown under Recent projects. A project that is already open in Desktop and visible in the sidebar, but is older than the five most recent, returns "No folders found" when searched by project name. Entering its full absolute path works.

Expected: typing part of any known/open project name should return that project. The empty dialog can remain limited to five recent projects.

This is still reproducible in 1.18.7 and matches #7111, which was closed as stale with a request to open a new issue if it remained relevant.

Root cause: packages/app/src/components/dialog-select-directory.tsx calls .slice(0, 5) while building recentProjects(), before the List component performs fuzzy filtering. Keeping all known projects as search candidates and applying .slice(0, 5) only when the query is empty fixes the behavior.

Plugins

None

OpenCode version

1.18.7

Steps to reproduce

  1. Open more than five projects in OpenCode Desktop.
  2. Ensure one older project remains visible in the project sidebar but is not in the five-item Recent projects section.
  3. Open the project picker with Ctrl+O, or a remapped project.open shortcut.
  4. Type part or all of the older project name.
  5. Observe "No folders found".
  6. Enter the full absolute project path and observe that it can be opened.

Screenshot and/or share link

No response

Operating System

Windows 11, OpenCode Desktop connected to a WSL2 OpenCode server

Terminal

OpenCode Desktop

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions