Description
The "Open Project" dialog in web mode still shows "No folders found" and returns 400 errors.
This is related to the previously closed #6307, which was marked as fixed but the fix doesn't seem to be in the released versions.
Version
- opencode: 1.1.19 (latest)
Steps to Reproduce
- Run
opencode web from home directory
- Click "Open project" button
- Dialog shows "No folders found for ''"
Root Cause
The /find/file endpoint requires query parameter but the SDK/UI sends it as undefined when empty:
# This fails with 400:
curl "http://127.0.0.1:PORT/find/file?type=directory&limit=10"
# Error:
{
"error": [{
"expected": "string",
"code": "invalid_type",
"path": ["query"],
"message": "Invalid input: expected string, received undefined"
}]
}
# This works:
curl "http://127.0.0.1:PORT/find/file?query=&type=directory&limit=10"
Proposed Fix
- Make
query parameter optional with default empty string in server validator
- Add
directory parameter support for searching outside current project
- Fix
useFilteredList hook to properly handle async items function
See PR #8186 for the full fix (was closed saying it was already fixed, but it wasn't).
Screenshots

Description
The "Open Project" dialog in web mode still shows "No folders found" and returns 400 errors.
This is related to the previously closed #6307, which was marked as fixed but the fix doesn't seem to be in the released versions.
Version
Steps to Reproduce
opencode webfrom home directoryRoot Cause
The
/find/fileendpoint requiresqueryparameter but the SDK/UI sends it asundefinedwhen empty:Proposed Fix
queryparameter optional with default empty string in server validatordirectoryparameter support for searching outside current projectuseFilteredListhook to properly handle async items functionSee PR #8186 for the full fix (was closed saying it was already fixed, but it wasn't).
Screenshots