Description
Summary
On Windows, a single git worktree can appear twice in OpenCode Web/Desktop sidebar (e.g. feature/loc-turkish), where one entry has sessions and the other shows none.
This appears to happen when the same physical path is represented with different string forms (C:/... vs C:\..., and sometimes drive-case differences), and dedupe/filtering is strict string-based.
Environment
- OpenCode: 1.2.9 and 1.2.10
- OS: Windows
- Web/Desktop UI
- Workspaces enabled
Evidence
- Session rows exist for only one exact directory string (example:
C:/Users/.../crisp-planet).
- API/log behavior shows both slash styles being used for same worktree context.
- Sidebar appears to treat these as separate workspaces rather than canonical equivalents.
Expected
- Workspace list dedupes equivalent Windows paths.
- Session filtering canonicalizes directory path before matching.
Actual
- Duplicate workspace rows appear.
- One duplicate row has no sessions.
Suggested fix
- Canonicalize all workspace/session path keys on Windows before:
- workspace list generation/dedupe
- session filtering
- project sandbox/worktree serialization
Plugins
Unrelated
OpenCode version
1.2.10
Steps to reproduce
- Use repo with workspaces/worktrees enabled.
- Have a worktree at
.../crisp-planet.
- Open sidebar workspace selector.
- Observe duplicate entry for same branch/worktree.
- One entry has sessions; the other entry is empty.
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response
Description
Summary
On Windows, a single git worktree can appear twice in OpenCode Web/Desktop sidebar (e.g.
feature/loc-turkish), where one entry has sessions and the other shows none.This appears to happen when the same physical path is represented with different string forms (
C:/...vsC:\..., and sometimes drive-case differences), and dedupe/filtering is strict string-based.Environment
Evidence
C:/Users/.../crisp-planet).Expected
Actual
Suggested fix
Plugins
Unrelated
OpenCode version
1.2.10
Steps to reproduce
.../crisp-planet.Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response