anomalyco / anomalyco/opencode
Bug: Opening Project with Same Name in Different Folder Fails to Switch and AI Agent Modifies Wrong Project
Open
@kitlangton is already working on this.
Since Sep 7, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
When I open a project, it currently looks like this:
When I open another project located in a different folder but with the same project name and a different branch, the project doesn't switch; it still displays the original old project, and the AI agent also modifies the old project:
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
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.