opencode
opencode copied to clipboard
fix: Open project dialog shows 'No folders found' in web UI
Bug Description
The "Open project" dialog in the web UI shows "No folders found" instead of listing directories.
Root Causes
-
Server API issue:
/find/fileendpoint requiresqueryparameter, but the SDK sends empty string asundefined, resulting in 400 Bad Request -
Server API issue:
directoryparameter is ignored - always searches current project directory instead of the specified home directory -
UI Hook issue:
useFilteredListhook doesn't properly handle async items function with filter parameter
Steps to Reproduce
- Run
opencode web - Open the web UI in browser
- Press Cmd+O or click "Open project"
- Dialog shows "No folders found"
Expected Behavior
Dialog should list directories from the home folder.
Environment
- Version: 1.1.19
- Platform: macOS / Web UI