Skip to content

Desktop pairing: provide safe reopen/copy actions when external browser handoff fails silently #2247

Closed

Description

@integry

Implement on desktop epic 1950-epic-cross-platform-dsk; child PR must include Closes this issue and stay unmerged. Linux/macOS only; Windows remains deferred.

Observed during real Linux acceptance after #2246: authenticated pairing works through managed Connect once host Chromium is opened explicitly, but Electron shell.openExternal from the isolated test-user/Snap launcher can acknowledge launch without opening a usable browser. The app remains on Waiting for browser approval with only Cancel sign in / Choose another instance. Root had to retrieve the public pairing ID from the test backend and manually open the approved UI, which is not acceptable user recovery.

Add clear user-driven Reopen browser and Copy approval link actions for the CURRENT pending pairing. Keep URLs and browser launch/clipboard operations in the main process where possible; never expose device secrets or tokens, log approval URLs, relax approval URL normalization, or accept renderer-supplied URLs. Validate current operation/profile binding, expiration, cancellation and replacement at each action; stale actions must not reopen/copy an old pairing. Copying/reopening must not start duplicate pairing requests or reset deadlines. Preserve approval polling after ambiguous OS errors. Show concise helpful feedback if an action fails. Respect the OS default browser; do not hardcode a browser for all users or add a privileged host bridge. Host Chromium is the acceptance browser on this machine.

Add focused lifecycle/security regressions and a rendered waiting-state test. Cover silent-success launch, explicit launch rejection, copy/reopen success, cancellation/expiry/replacement, safe diagnostics and no secret exposure. Avoid unrelated polishing or architecture changes. Run tests and package smoke; leave a child PR for Ultrafix-first review followed by independent validation. Production/main unchanged.

Activity

  1. propr-dev commented on Sep 9, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2247-20260909-1519-gpt-5.6-sol-wzz

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 9, 2026
  3. integry commented on Sep 9, 2026

    @integry
    OwnerAuthor

    Implemented by #2250, merged into desktop epic 1950-epic-cross-platform-dsk at cc72013 (not main). ProPR review 9/10 after Ultrafix initiation; independent focused tests, 126/126 durability, full suite, all four Linux/macOS package and Connect gates passed. Live installed Linux UI: Reopen browser reports request, Copy approval link copies the validated tunnel browser route, pasted into host Chromium, approved and consumed, then Connected dashboard with GitHub identity. Windows remains deferred in #2074.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions