Skip to content

Project ID collision when independent clones share a root commit #23868

@tinywind

Description

@tinywind

Description

Independent git clones that share the same initial/root commit are treated as the same OpenCode project. Sessions created in one clone appear in the other even though they are separate working directories.

This is the same behavior previously reported in #6696, which was auto-closed as stale.

Plugins

No response

OpenCode version

Observed on the current local install before applying the fix in PR #23866.

Steps to reproduce

  1. Create a git repository with one initial commit.
  2. Clone it into two different directories.
  3. Open OpenCode in the first clone and create a session.
  4. Open OpenCode in the second clone.
  5. Observe that both clones resolve to the same project/session history.

Screenshot and/or share link

No response

Operating System

Linux

Terminal

bash

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions