anomalyco / anomalyco/opencode

Cannot add project folder that contains a .git directory

Open
#43,822 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 21, 2026.

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

Description

Description
Describe the bug

When I try to add a new project to OpenCode, if the target folder already contains a .git subdirectory (i.e., it is a Git repository), the addition fails. The project is not added, and no clear error message is shown.

Plugins

No response

OpenCode version

v1.18.19

Steps to reproduce
  1. Open OpenCode.
  2. Click on "Add Project" (or the equivalent action to add a new local project).
  3. Navigate to a folder that contains a .git folder (e.g., an existing cloned repository).
  4. Select the folder and confirm the addition.
Screenshot and/or share link

No response

Operating System

windows11

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.