anomalyco / anomalyco/opencode
Cannot add same git repo with different branches as separate projects
Open
@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
- Open opencode and add a project pointing to a git repo (e.g.,
/path/to/repoonbranch-1) - Try to add another project pointing to the same repo path but on a different branch (e.g.,
/path/to/repoonbranch-2) - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.