Skip to content

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

Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 22, 2026
  2. github-actions commented on Apr 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    (Note: the author already references #6696 in the issue description.)

  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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