anomalyco / anomalyco/opencode

[Desktop] Unable to add folder from another worktree of the same repository

Open
#41,282 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 8, 2026.

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

Description

Description

I have a project in folder A. I added a new worktree to folder B using the git worktree command. When I select folder B in the OpenCode desktop app to add it as a project, nothing happens.

Plugins

No response

OpenCode version

v1.18.15

Steps to reproduce
  1. Have an existing project in folder A that is already initialized as a Git repository.
  2. Open a terminal and run the following command to create a new worktree in folder B:
    git worktree add ../B <branch-name>
    
  3. Launch the OpenCode desktop client.
  4. Click "Add Project" and select folder B as the project folder.
  5. Observe the application's response.
Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

powershell

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.