anomalyco / anomalyco/opencode

Cannot add same git repo with different branches as separate projects

Open
#48,525 1 comment 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Sep 11, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When adding a git repository as a project in opencode, the application uses the repository path as the unique identifier. This prevents adding the same repository checked out to a different branch as a separate project.

Plugins

No response

OpenCode version

1.18.30

Steps to reproduce
  1. Open opencode and add a project pointing to a git repo (e.g., /path/to/repo on branch-1)
  2. Try to add another project pointing to the same repo path but on a different branch (e.g., /path/to/repo on branch-2)
  3. opencode rejects/ignores the second project because the path is already registered
Screenshot and/or share link

No response

Operating System

macOS 26.2 (25C56)

Terminal

Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.