anomalyco / anomalyco/opencode
Same project name, different folders
@Brendonovich 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
OpenCode Desktop does not keep two separate folders distinct when both are checkouts or copies of the same Git repository. The project shown in the UI can differ from the directory the agent is actually using, so work intended for one Unity project may run in the other.
Expected behavior: Selecting a project switches the workspace and agent working directory to that project's absolute folder.
Actual behavior: The two folders collide. Switching projects can leave the UI showing one project while the agent session is rooted in the other.
Plugins
None relevant to project selection.
OpenCode version
1.2.27
Steps to reproduce
- Create two separate checkouts or copies of the same Git repository in different parent folders.
- Confirm both checkouts have the same Git remote and can be opened independently (in this case, as two Unity projects).
- Add or open both folders in OpenCode Desktop.
- Start a session in each project.
- Switch between the two projects and ask the agent to report its working directory.
- Observe that OpenCode does not consistently keep the entries separate: the selected project shown in the UI can point to the other checkout's working directory.
Screenshot and/or share link
Not available.
Operating System
macOS 26.5.2 (Apple Silicon)
Terminal
OpenCode Desktop app
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.