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
/api/fs/find returns empty results when location.directory is /, making the "Open project" picker unusable #57435
When the server's current project is the pseudo-project global (worktree /), GET /api/fs/find returns {"data":[]} for every query, so the "Open project"
dialog (mod+o) shows an empty list and no project can ever be added from the web UI.
/api/fs/list at the same location works fine, so it is not a permission or
visibility problem — it is specific to find.
Plugins
No response
OpenCode version
1.19.0 (web frontend bundle reports 1.18.35)
Steps to reproduce
Run the server from a directory that is not inside a git repository, so the
current project resolves to global with worktree /:
mkdir -p /tmp/ws && cd /tmp/ws && opencode web --port 4096
Compare list and find at the same location:
# works — returns bin/, dev/, etc/, home/, ...
curl -G 'http://localhost:4096/api/fs/list' \
--data-urlencode 'location[directory]=/'
# always empty, for any query, with or without `type` / `limit`
curl -G 'http://localhost:4096/api/fs/find' \
--data-urlencode 'location[directory]=/' \
--data-urlencode 'query=etc' \
--data-urlencode 'type=directory'
In the web UI, press mod+o ("Open project") and type anything: the list is
empty. Since the picker has no "go up" action and roots at the current
project directory, there is no way to add a project that is not a descendant
of the current one — a dead end for a fresh install.
Thanks for the detailed report and the curl repro, it makes the problem very clear.
OpenCode 1.19.0 is part of v1 (versions 0.x/1.x). v1 only gets fixes for critical bugs such as data loss, security problems or breakage with no workaround, so this is unlikely to be fixed there. For now you can start opencode web from your project directory, or from a parent folder other than / (for example a mounted workspace folder). The "Open project" picker searches from the folder the server was started in.
We recommend moving to OpenCode v2 (npm package @opencode/cli, opencode command), where active development happens. Related issues you may want to follow:
Closing this as not planned. The report is for OpenCode 1.19.0, which is v1, and v1 only gets fixes for critical bugs. In the meantime, starting opencode web from your project directory (or a parent folder other than /) lets the "Open project" picker find folders again.
If you see the same empty /api/fs/find results on v2 (@opencode/cli), please open a new issue with the v2 version and your curl repro, or reply here. Thanks again for the detailed report.
Activity
opencode-agent commentedon Oct 20, 2026
Thanks for the detailed report and the curl repro, it makes the problem very clear.
OpenCode 1.19.0 is part of v1 (versions 0.x/1.x). v1 only gets fixes for critical bugs such as data loss, security problems or breakage with no workaround, so this is unlikely to be fixed there. For now you can start
opencode webfrom your project directory, or from a parent folder other than/(for example a mounted workspace folder). The "Open project" picker searches from the folder the server was started in.We recommend moving to OpenCode v2 (npm package
@opencode/cli,opencodecommand), where active development happens. Related issues you may want to follow:@file search returns nothing when cwd is the home directory — fff init failure leaves an empty stub, no ripgrep fallback #41456:@file search returned nothing in the home directory because the search backend failed to startIf this also happens on v2, or you think it's critical, please reply here with the v2 version and the same curl output.
opencode-agent commentedon Oct 21, 2026
Closing this as not planned. The report is for OpenCode 1.19.0, which is v1, and v1 only gets fixes for critical bugs. In the meantime, starting
opencode webfrom your project directory (or a parent folder other than/) lets the "Open project" picker find folders again.If you see the same empty
/api/fs/findresults on v2 (@opencode/cli), please open a new issue with the v2 version and your curl repro, or reply here. Thanks again for the detailed report.