anomalyco / anomalyco/opencode
Cannot add project folder that contains a .git directory
Open
@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
- Open OpenCode.
- Click on "Add Project" (or the equivalent action to add a new local project).
- Navigate to a folder that contains a
.gitfolder (e.g., an existing cloned repository). - Select the folder and confirm the addition.
Screenshot and/or share link
No response
Operating System
windows11
Terminal
No response
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.