You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recent projects not found in 'Open Project' dialog search #7111
When searching for folders in the "Open Project" dialog, recent projects that appear in the home page are not included in search results.
For example, if I have a project at /Users/xxx/my-project that shows up in "Recent projects" on the home page, searching for "my-project" in the "Open Project" dialog shows "No folders found" instead of listing that project.
Expected Behavior
The "Open Project" dialog should search across all accessible directories, including recently opened projects. When I search for a project name that appears in the recent projects list, it should show up in the search results.
Current Behavior
The "Open Project" dialog only searches within the current project directory (via server-side fuzzy search). Recent projects stored in the database (sync.data.project) are completely excluded from search results, even though they appear on the home page.
Steps to Reproduce
Open a project (e.g., ~/my-project)
Go to home page - project appears in "Recent projects"
Press Cmd+O (or click "Open project")
Type "my-project" in the search box
See "No folders found for 'my-project'" message
Root Cause
The backend File.search() function (in packages/opencode/src/file/index.ts:372-410) only searches files and directories within the current project directory using Ripgrep. It does not search across all projects.
Recent projects are stored in the database (sync.data.project.worktree) separately from the file system, so the server cannot find them. The frontend DialogSelectDirectory component needs to manually merge recent projects with server search results.
Activity
github-actions commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
apellaman commentedon Apr 22, 2026
it seems opencode can't open the picker on linux. probably a bug realted to workstree?
hiraghi commentedon Apr 27, 2026
Seeing the same behavior on Windows with the opencode beta VSCode extension — recent projects are not searchable in the Open Project dialog.