Skip to content

Conversation

@lxxonx
Copy link

@lxxonx lxxonx commented Jan 14, 2026

Summary

Fixes #8325

The "Open project" dialog in the web UI shows "No folders found" instead of listing directories.

Changes

  1. packages/opencode/src/server/server.ts:

    • Made query parameter optional with default ""
    • Added directory parameter to search from specified path
    • Added directory scanning logic when directory param is provided
  2. packages/ui/src/hooks/use-filtered-list.tsx:

    • Fixed async items function handling with null safety (needle ?? "")
  3. packages/app/src/components/dialog-select-directory.tsx:

    • Added null-safety: (filter ?? "").trim()

Verification

Tested locally by running opencode web and confirming the "Open project" dialog now shows directories from the home folder.

- Make query parameter optional in /find/file endpoint (default to empty string)
- Add directory parameter support to search from specified path
- Fix useFilteredList to properly handle async items functions with null safety
- Add null-safety for filter parameter in dialog-select-directory

Fixes anomalyco#8325
@lxxonx lxxonx requested a review from adamdotdevin as a code owner January 14, 2026 02:05
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@blankPen
Copy link

I encountered the same problem, please fix it.

@fengwk
Copy link

fengwk commented Jan 14, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

The same issue, please merge it.

@adamdotdevin
Copy link
Contributor

We fixed this this morning!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Open project dialog shows 'No folders found' in web UI

4 participants