anomalyco / anomalyco/opencode
Desktop Windows cannot switch between multiple working directories for the same repository
@Hona is already working on this.
Since Jul 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In the opencode Desktop app on Windows, switching between multiple local working directories that point to the same code repository does not work reliably.
For example, I may have the same repository A checked out into multiple local working directories for different development purposes:
- D:\work\A-feature-1
- D:\work\A-feature-2
When both directories are added/used in opencode Desktop, switching between them can fail or keep opening/using the wrong workspace. The only workaround I found is to remove one of the duplicated repository workspaces, after which the remaining one works normally.
Expected behavior
opencode Desktop should treat different local working directories as separate workspaces, even if they are based on the same repository, and allow switching between them normally.
Actual behavior
When multiple working directories correspond to the same repository, switching between them may not work correctly. One of them has to be removed before the other can be used normally.
Environment
- App: opencode Desktop
- OS: Windows
Notes
This seems related to workspace identity/deduplication. It may be using repository identity/name instead of the full local path when distinguishing workspaces.
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.