anomalyco / anomalyco/opencode

When opening a project via GUI in different directories, issues may arise.

Open
#39,605 2 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 30, 2026.

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

Description

Description

When I have a project, I might switch between Git branches, so I end up with two directories on my desktop containing the same project. Let's say the project is named "test"—directory A contains the "test" project under branch name1, and directory B contains the "test" project under branch name2. If I first add the "test" project from directory A to a session on my desktop, and then want to work on the files in directory B, I create a new session and add the project again, selecting the "test" location in directory B. However, I notice that the displayed branch remains name1.

Plugins

No response

OpenCode version

No response

Steps to reproduce

Try placing the same project in different directories; although the project name remains the same and the branch differs, if you create a new session for both projects in these two locations, you will find that only the location of one of the projects is added.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

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.