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
Opencode desktop opens wrong project and loses session data. #31716
When selecting or adding a project in OpenCode Desktop, the application sometimes opens a completely different project instead of the one I selected.
In addition to this:
The correct project’s sessions are not loaded.
The incorrectly opened project also shows missing or empty sessions.
Project switching behaves inconsistently and feels broken.
Expected Behavior:
When selecting a project, OpenCode should open the correct workspace and load all related session history and data properly.
Actual Behavior:
A different project opens than the one selected.
Session history is missing or not loaded for either project.
Workspace state appears corrupted or inconsistent.
Environment:
OS: Windows 11
OpenCode Desktop version: v1.16.2 and v1.17.1 (tested on both)
Possible Cause:
This seems related to a corrupted local SQLite database state used by OpenCode Desktop for storing workspace/project/session data.
In my case, the issue was resolved by removing the local database file:
%USERPROFILE%.local\share\opencode\opencode.db
After deleting this file, OpenCode regenerated it automatically and the issue disappeared.
Plugins
I am using OpenCode Desktop with its default plugin setup.
Activity
github-actions commentedon Jun 10, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these, please clarify what makes it different so we can keep it open.