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
- Open more than five projects in OpenCode Desktop.
- Ensure one older project remains visible in the project sidebar but is not in the five-item Recent projects section.
- Open the project picker with Ctrl+O, or a remapped project.open shortcut.
- Type part or all of the older project name.
- Observe "No folders found".
- 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
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
Screenshot and/or share link
No response
Operating System
Windows 11, OpenCode Desktop connected to a WSL2 OpenCode server
Terminal
OpenCode Desktop