GeezerVison is showing github.com — [Regression] v1.17.13 web UI session list still empty — fixes from #30167/#30314/#30804 not cherry-picked to stable · Issue #35340 · anomalyco/opencode
[Regression] v1.17.13 web UI session list still empty — fixes from #30167/#30314/#30804 not cherry-picked to stable #35340DescriptionSummary
v1.17.13 (npm @latest, 2026-07-01) ships with a web UI whose session sidebar is completely blank, even though the API returns the correct data. The same bug was fixed in dev via #30167, #30314, and #30804, but those fixes were not cherry-picked to the v1.17.x stable line, so the release is broken out of the box for any user running opencode web.
Environment
- OpenCode: v1.17.13 (
npm i -g opencode-ai@latest)
- OS: Windows 11
- CWD:
D:\Work\my-project (any project directory with existing sessions)
- Launch:
opencode web --port 4097 --hostname 0.0.0.0
- Browser: Chrome on
http://localhost:4097/
Reproduction
cd into any project directory that has historical OpenCode sessions
opencode web --port 4097 --hostname 0.0.0.0
- Open
http://localhost:4097/ in Chrome
- Expected: sidebar lists historical sessions for this directory
- Actual: sidebar is completely empty. No sessions, no "New session" button, no project list. Just a blank layout shell.
Server-side data is correct (proves this is a client-side bug)
GET / returns 200, valid HTML (2884 bytes, title=OpenCode, loads /assets/index-Dvq4a-70.js)
GET /api/session returns 200, 50 sessions, all with directory matching the CWD
GET /api/location returns directory matching the CWD (matches every session)
GET /api/session?directory=...&roots=true returns sessions regardless of forward-slash / backslash / roots variations — server filter is consistent
/global/event SSE stream connects and stays open
Cross-build sanity check
Switched to the dev channel build (npm i -g opencode-ai@dev, version 0.0.0-dev-202607040745):
GET /api/session returns 0 sessions — dev uses opencode-dev.db instead of opencode.db, so the user's entire history is invisible
- Switching to dev is not a workaround — it's a different broken state (empty DB + same client-side race)
This confirms dev is a separate code line from v1.17.13, and the fix in #30167 lives in the dev line that 1.17.13 was cut before picking up.
This matches the documented client-side boot race:
child-store.ts returns an empty path.directory until the TanStack Query path request resolves
server-sync.tsx calls loadSessions() before that resolves
sortedRootSessions() filters out every session because session.directory !== store.path.directory (which is still "")
- After a client navigation, the path query resolves and the same sessions become visible — but a hard reload repeats the empty state
The same family of bugs is also tracked in:
Request
Please either:
- Cherry-pick fix(app): show project sessions before path sync resolves #30167 + fix(app): avoid suspending on pending child path #30314 + fix(session): respect directory filter with workspaces #30804 into the next
1.17.x patch release, or
- Revert the Apr-20 loading refactor (
687b758, PR app: better loading #23489) on the v1.17.x line until the dev fixes have been validated in a stable release
The web UI is currently unusable for anyone who installs opencode-ai@latest and runs opencode web. This is a release blocker.
Not a duplicate investigation request: The root cause is already diagnosed in #30166. I'm asking for the fix to land in a release users can npm install. Activitygithub-actions commented on Jul 4, 2026 This issue might be a duplicate of existing issues. Please check:
If these existing issues cover the same problem, consider adding detail there rather than tracking it separately. If your report is specifically about the stable-vs-dev cherry-pick gap and none of those issues capture that angle, please clarify how this differs so maintainers can triage appropriately. atongrun commented on Jul 4, 2026 Thanks for the duplicate check. I've reviewed all four linked issues — they do cover the same symptom and root cause. However, this issue has a distinct angle:
The fix already exists in dev (#30167, #30314, #30804) but was not cherry-picked to the v1.17.13 stable release.
The four linked issues (#27837, #21441, #30054, #10519) are all tracking the bug itself. This issue is tracking the release gap: the bug was diagnosed, fixed, and merged to dev weeks ago, but npm i -g opencode-ai@latest still installs a broken build.
I'm happy to close this as a duplicate if the maintainers confirm that the next 1.17.x patch release will include the existing fixes. Otherwise, this serves as a release-blocker reminder that latest is currently unusable for opencode web. github-actions commented on Sep 3, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|