Skip to content

Opencode desktop opens wrong project and loses session data. #31716

Closed

Description

@trpamuk

Description

Description:

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.

OpenCode version

1.17.1

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. github-actions commented on Jun 10, 2026

    @github-actions
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions