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
In the web UI, a project/worktree can have existing sessions returned by the API, but the sidebar renders only New session and Load more. Clicking Load more makes a request, but no session rows appear. The list endpoint was returning session records for the project, but the sidebar stayed empty.
Root cause appears to be Session.list() / listByProject() ignoring the explicit directory filter when experimental workspaces are enabled:
With experimental workspaces on, GET /session?directory=...&roots=true&limit=... can return project-wide sessions instead of sessions for the requested directory. The web sidebar then client-filters by exact session.directory, so if the loaded page contains sessions from other worktrees/directories, the visible list is empty while sessionTotal still makes Load more appear.
Plugins
None
OpenCode version
1.15.13
Steps to reproduce
Use a git project with multiple worktrees/directories that have historical sessions in the database.
Enable/use the web UI with experimental workspaces behavior.
Description
In the web UI, a project/worktree can have existing sessions returned by the API, but the sidebar renders only
New sessionandLoad more. ClickingLoad moremakes a request, but no session rows appear. The list endpoint was returning session records for the project, but the sidebar stayed empty.Root cause appears to be
Session.list()/listByProject()ignoring the explicitdirectoryfilter when experimental workspaces are enabled:With experimental workspaces on,
GET /session?directory=...&roots=true&limit=...can return project-wide sessions instead of sessions for the requested directory. The web sidebar then client-filters by exactsession.directory, so if the loaded page contains sessions from other worktrees/directories, the visible list is empty whilesessionTotalstill makesLoad moreappear.Plugins
None
OpenCode version
1.15.13
Steps to reproduce
Screenshot and/or share link
chrome_t6ztZ0DWtg.mp4
Operating System
Ubuntu 22.04
Terminal
Ghostty