Skip to content

fix(desktop): preserve selected directories and propose local connection links - #51431

Closed
marcusquinn wants to merge 3 commits into
anomalyco:devfrom
marcusquinn:desktop-directories
Closed

marcusquinn wants to merge 3 commits into
anomalyco:devfrom
marcusquinn:desktop-directories

Conversation

@marcusquinn

@marcusquinn marcusquinn commented Sep 26, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #51430 (connection-link design proposal). Fixes #50821 (explicit directory selection). Related: #29869, #43316.

Type of change

  • Bug fix
  • New feature (design-review proposal)
  • Refactor / code improvement
  • Documentation

What does this PR do?

Preserves explicitly opened directories instead of replacing them with the primary path of a shared Git project. Canonical checkouts and linked worktrees remain independently selectable.

A separate commit proposes a confirmed, loopback-only opencode://connect flow and packaged capability discovery for launchers. It preserves saved defaults and credentials, supports cold launches, and opens a draft in the requested directory. Draft pending core-team design review of this new UI/interface. The directory fix is separable as commit 131840bb94.

How did you verify your code works?

Six Chromium regressions pass: add/reload/close/reopen/exact draft directory with either Git primary, existing picker search, connection cancellation, and cold-start confirmation. App, Desktop and E2E typechecks pass; 42 scoped app tests and 9 Desktop tests pass. No live databases were migrated.

Reproduce from packages/app: PLAYWRIGHT_PORT=4484 PLAYWRIGHT_SERVER_PORT=4485 PLAYWRIGHT_WORKERS=1 bun run test:e2e e2e/regression/connection-links.spec.ts e2e/regression/project-directory-selection.spec.ts e2e/regression/project-picker-recent-search.spec.ts --project=chromium.

Screenshots / recordings

Captured by the Chromium regressions above (desktop width; also checked locally at 390px mobile width with no page errors).

Connection confirmation — shown before any health request; Cancel changes nothing:

Open project confirmation dialog showing the loopback server address and requested folder

Explicit directories — a canonical checkout and a linked worktree of the same Git project stay separately listed and selectable:

Projects list showing canonical and test-worktree as separate entries

Packaged Electron end-to-end acceptance remains unverified.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

aidevops.sh v3.37.1 plugin for OpenCode v2.0.3 with claude-opus-5-5 spent 13m and 6,518 tokens on this with the user in an interactive session.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Labels

None yet

Projects

None yet

2 participants