GeezerVison is showing github.com — Web UI not showing my sessions · Issue #10519 · anomalyco/opencode
Web UI not showing my sessions #10519DescriptionDescription
For about 3 weeks the web UI stopped recording my sessions in it only my old sessions and projects.
all new projects and sessions are not showing.
Plugins
opencode-anthropic-auth
OpenCode version
1.1.35
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
macOs taho
Terminal
No response Reacted by jjohnson1024, Chris Denneen, Clemens Damke, Cameron Larsen, Tequila Sunset, Gaetan Marecat, Cropse, ayamkv, Esa-Matti Suuronen, Gerald Abraham Sianturi and 2 more Activitygithub-actions commented on Jan 25, 2026 This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. brunnerh commented on Jan 27, 2026 Not sure if this is exactly the same issue (because different OS), but sessions started in the TUI are not showing up for me in the Web UI on Windows. Sessions created in the Web UI do show up in the TUI alongside the TUI sessions.
It might have to do with directory path handling.
The session files have different paths for the same directory on Windows:
E.g.
// Web UI session
{
"id": "ses_...",
"slug": "quiet-canyon",
"version": "1.1.36",
"projectID": "[same-project-id-here]",
"directory": "D:/brunnerh/Project/Code",
...
}
// TUI session
{
"id": "ses_...",
"slug": "quick-circuit",
"version": "1.1.36",
"projectID": "[same-project-id-here]",
"directory": "D:\\brunnerh\\Project\\Code",
...
}
Trying to open a project using \ in the path via the Web UI also does not list any directories, so it kind of makes sense that the directory path gets stored differently. Also wondering why the directory is being used when there is a projectID that matches.
Some LLM exploration that identifies the path handling as an issue:
Response
Found a likely root cause: the web app requests sessions filtered by an exact directory string, but sessions are stored with the current working directory at creation time, so any mismatch (subdirectory vs project root, path casing, symlink path, etc.) makes the list come back empty even though sessions exist.
Here’s the chain:
- Sessions are stored with
directory: Instance.directory at creation time (packages/opencode/src/session/index.ts:140-206).
- The API list route filters by exact match when
directory is provided (packages/opencode/src/server/routes/session.ts:55-63).
- The web UI calls
globalSDK.client.session.list({ directory, roots: true }) using the project’s worktree (or sandbox) path, not necessarily the exact directory where the session was created (packages/app/src/context/global-sync.tsx:379-410, packages/app/src/context/layout.tsx:383-387, packages/app/src/pages/layout.tsx:1454-1470).
- The server also uses that same
directory query param to select the instance (packages/opencode/src/server/server.ts:124-139), so you still get the right project, but then the route filters out sessions whose stored session.directory doesn’t exactly match the worktree.
Typical failure case: a session was created from a subdirectory (/repo/packages/foo), but the web list request uses /repo as the directory filter, so it doesn’t match.
Potential fixes (any one of these should resolve it):
- Don’t pass the
directory filter when listing sessions in the web UI (still pass the directory for instance selection via header/query at the SDK level).
- Normalize paths (e.g.,
path.resolve, case normalization on Windows) before comparing.
- Change the server filter to allow prefix/containment (e.g., treat sessions as part of the project if
session.directory is inside the worktree).
- Store
session.directory as the project worktree instead of the current directory.
Reacted by CurryPseudo, Kevin McBride, Brent D'Adamo, Egil Sandfeld, horakmi2, hiterm, Cameron Larsen, Adam Gustafson and Gerald Abraham Sianturi InCerryGit commented on Feb 11, 2026 Reacted by horakmi2, Clemens Damke, Cameron Larsen, Adam Gustafson, Gaetan Marecat, ayamkv, Ubastic, Duckida, Gerald Abraham Sianturi, ItsNil and 2 more sharno commented on Feb 27, 2026 Same here and I think even sessions started on the web from different devices don't appear in different browsers. Running it on Windows too, in Powershell outside of WSL cropse commented on Mar 25, 2026 Issue still, sometime it appears sometime it doesn't goedzo commented on Jun 9, 2026 I also have this issue. My sessions are not always showing up in the webui when I host it on an external URL (password protected).
When I run npx opencode-ai@latest session list --max-count 5000 --format table I see all the sessions. shmygol commented on Jun 13, 2026 Similar issue and in my case seems like a frontend problem, because the sessions sometimes don't show up for one web client while showing up for another (e.g. on mobile browser). Workaround seems to be working without restarting the server: close the projects, refresh the page, open the project again (if it hasn't appeared magically itself). github-actions commented on Aug 13, 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
|