Skip to content

Desktop reuses the same window for two local clones of the same git remote #33313

Closed as not planned

Description

@Smicry

Description

opencode desktop cannot open two different local directories that are clones of the same git remote at the same time. Opening the second directory reuses the window of the first one, so only one of them can ever be shown.

Steps to reproduce

  1. Clone the same remote into two separate local directories:
    • ~/path-a/myrepo (origin: git@:/myrepo.git)
    • ~/path-b/myrepo (origin: git@:/myrepo.git)
  2. Open ~/path-a/myrepo in opencode desktop.
  3. Open ~/path-b/myrepo in opencode desktop.

Expected

Two separate windows/sessions, one per local directory.

Actual

The second open reuses the first window; the view always shows the first directory. The two clones are treated as the same project.

Suspected cause

The window/session is likely keyed by the git remote URL instead of the local absolute path, so distinct clones of the same remote collide.

Environment

  • opencode: 1.17.9 (desktop)
  • macOS: 26.5.1 (25F80), arm64

Activity

  1. github-actions commented on Jun 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from these, please add a comment explaining how it differs.

  2. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  3. Hona commented on Sep 2, 2026

    @Hona
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions