Skip to content

I have a git project that has cloned twice to different folders on the local disk. OpenCode can only open one and open the second one, but when opening the second, it still uses the first operation record #36217

Closed as not planned

Description

@fredeason

Description

Because the same project in these two folders is a different branch and the code content is quite different, I need to open this project. Can the opencode mechanism be changed? Can't it be differentiated by project path?
I've put them in different folders, so why is it still the same project? The code differences are quite significant

Although the git address is the same, different branches differ greatly. Can the logic of not being able to open two copies of the same git project at the same time be changed?

Plugins

No response

OpenCode version

v1.17.16

Steps to reproduce

The same Git project can be clone multiple copies in different local folders, but with different branches, you cannot open either project in OpenCode; only one can be opened

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

git bash

Activity

  1. github-actions commented on Jul 10, 2026

    @github-actions
    Contributor

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

    These issues describe the same root cause: OpenCode derives the project ID from the git remote URL rather than the local directory path, so multiple clones of the same repository are treated as a single project. Please review those issues and add a reaction or comment there if they match your situation.

  2. github-actions commented on Sep 9, 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