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
web: fresh client shows no projects after opencode serve in a project folder #55222
Running opencode serve in a project folder and opening the web UI in a fresh browser shows no projects ("Nothing here yet"). The folder the server was started in is not listed, so there is nothing to open.
The server knows the folder: GET /api/location returns it. The sidebar reads the per-server project list kept in browser storage, and on a fresh client nothing fills that list.
This is the V2 version of #37096, which was closed with the V1 issues.
OpenCode version
2.0.28 (dev source)
Steps to reproduce
git init demo && cd demo
opencode serve --port 4096
Open the printed URL in a fresh browser profile (empty local storage).
The sidebar shows no projects. curl -u opencode:<password> http://127.0.0.1:4096/api/location returns the demo folder as directory.
Operating System
Linux (Debian container, arm64), headless Chromium
Thanks for the clear report. I could reproduce this.
Steps:
Installed @opencode/[email protected], ran git init demo, then opencode serve inside it.
Opened the printed URL in a fresh headless Chromium.
Connected with "Use password" and the password the server printed.
The home page shows only "Add project" and "Nothing here yet — Create a session to get started", even though GET /api/location returns the demo folder as directory. The same thing happens on the latest dev (e9def88a7) run from source. The screenshots below show the empty home on both versions, and the script below reproduces it.
Activity
opencode-agent commentedon Oct 13, 2026
Thanks for the clear report. I could reproduce this.
Steps:
@opencode/[email protected], rangit init demo, thenopencode serveinside it.The home page shows only "Add project" and "Nothing here yet — Create a session to get started", even though
GET /api/locationreturns thedemofolder asdirectory. The same thing happens on the latestdev(e9def88a7) run from source. The screenshots below show the empty home on both versions, and the script below reproduces it.Related:
Reproduction script (repro.mjs)
Run it:
bun repro.mjs