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
On Windows, session visibility in OpenCode Web/Desktop can break even when DB/session data is valid.
The sidebar appears to filter sessions by exact directory string.
Differences in path representation (\ vs /, B: vs b:) cause:
Main workspace sessions not showing
Duplicate worktree entries where one is empty
Global project (worktree /) showing no sessions despite /session API returning rows
This is reproducible in 1.2.9 and 1.2.10.
Environment
OS: Windows 10/11
OpenCode: 1.2.9, 1.2.10
UI: Web/Desktop
Data dir: %USERPROFILE%\\.local\\share\\opencode
Symptoms
local: maint for DRE sometimes shows no sessions.
feature/loc-turkish appears twice in sidebar:
one entry has sessions
the other is empty
OpenCode-Playground sessions can be returned by /session API but sidebar still empty.
Diagnostics / Evidence
DB integrity and JSON sidecars are valid (PRAGMA integrity_check = ok, json.load passes).
API returns healthy counts:
/session?directory=b:/dev/DRE/dre4 -> hundreds of sessions
But alternate equivalent path forms can return 0.
DEBUG logs show mixed directory contexts being created for same physical path:
directory=C:/.../crisp-planet
directory=C:\...\crisp-planet
Expected
Path-equivalent Windows directories should be canonicalized before:
project lookup
workspace dedupe
session filtering
So equivalent paths should always resolve to same workspace/session list.
Actual
Session visibility and workspace dedupe are based on raw string equality, causing empty lists and duplicate entries.
Suggested fix
Normalize path keys in one place (both read/write):
slash normalization
drive letter case normalization
optional case-insensitive compare on Windows
use normalized path for:
project.current resolution
/session?directory=... filtering
workspace deduping
sidecar/DB consistency checks
Plugins
Unrelated
OpenCode version
1.2.10
Steps to reproduce
Repro (path sensitivity)
Have sessions stored with directory B:/dev/DRE/dre4 (or b:/...).
Open project via another equivalent path form (B:\dev\DRE\dre4, or case variant).
Activity
github-actions commentedon Feb 21, 2026
This issue might be a duplicate of existing issues. Please check:
fix: normalize directory path for session list queries on Windows
fix: normalize directory paths for session list queries on Windows
github-actions commentedon Apr 23, 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.