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
{{ message }}
Repository navigation
[BUG] Desktop does not show sessions for non-Git project directories on Windows, while CLI lists them correctly #29621
OpenCode Desktop does not show existing sessions for a non-Git project directory, even though the same sessions are visible through the OpenCode CLI.
This works correctly for a Git-backed project directory, but not for a plain folder without a .git repository.
Observed Behavior In OpenCode Desktop:
Project 1, a Git repository, shows its previous sessions correctly.
Project 2, a non-Git folder, shows only the “New Session” button and no previous sessions.
In the CLI:
opencode session list
Run from Project 2, the expected sessions are listed correctly.
Expected Behavior OpenCode Desktop should show the same sessions for Project 2 that are shown by the CLI when both are pointing at the same directory.
A non-Git directory should still have its sessions visible in Desktop.
Investigation The sessions are stored correctly and can be listed by the CLI.
For Project 1, which is a Git repository, the session is associated with a real project entry:
This suggests that the CLI can list sessions for non-Git folders by using session.directory or session.path, while OpenCode Desktop may be filtering only by session.project_id.
Possible Cause For non-Git directories, OpenCode appears to store sessions under the special global project instead of creating a project-specific entry. OpenCode Desktop then seems to filter sessions by project ID only, so these sessions are not shown in the project view.
Plugins
No response
OpenCode version
1.15.11
Steps to reproduce
Create or open a regular folder on Windows that is not a Git repository, e.g. C:\example\project-2.
Start an OpenCode session in that folder.
Confirm via CLI that the session exists: opencode session list
Open the same folder in OpenCode Desktop.
Observe that the previous sessions are not shown.
Initialize Git in that folder or compare with another Git-backed project.
Observe that sessions for Git-backed projects appear correctly in Desktop.
changed the title [-]Desktop does not show sessions for non-Git project directories on Windows, while CLI lists them correctly[/-][+][BUG] Desktop does not show sessions for non-Git project directories on Windows, while CLI lists them correctly[/+]on May 27, 2026
Activity
[-]Desktop does not show sessions for non-Git project directories on Windows, while CLI lists them correctly[/-][+][BUG] Desktop does not show sessions for non-Git project directories on Windows, while CLI lists them correctly[/+]github-actions commentedon May 27, 2026
This issue might be a duplicate of existing issues. Please check:
globalproject_id for non-git directories are not visible in Desktop/sidebar after path/client mismatch; CLI can still list them correctly.project_id = "global"grouping vs. per-directory scoping./worktree sentinel for non-git projects (same root:worktree: "/"when there's no VCS).github-actions commentedon Jul 27, 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.