Skip to content

feat(mobile): pair with multiple desktops and switch independently - #580

Merged
huichen merged 3 commits into
mainfrom
claude/mobile-multi-desktop
Sep 13, 2026
Merged

huichen merged 3 commits into
mainfrom
claude/mobile-multi-desktop

Conversation

@huichen

@huichen huichen commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

What

Lets one phone pair with several desktops and switch between them, while every desktop still accepts only one phone.

  • New paired-desktops list (sessions header desktop selector, or Settings): pick a desktop to switch to, scan to add another, remove one pairing.
  • Switching reuses saved credentials; it does not claim or revoke any pair.
  • Removing a desktop (or a desktop-side revocation) clears only that pairing; other desktops stay paired.
  • Existing single-desktop credentials migrate to the list on first launch, without re-pairing.

Scope

Mobile only. No server or desktop protocol changes: pairing invitations, the signed handshake, per-pair JWT scope and the platform's one-phone-per-desktop rule are untouched (desktop/DEV_MD/CONNECTION.md records this as a mobile-side capability).

Isolation carried over from single-desktop assumptions:

  • Credentials are stored per desktop in dual-slot SecureStore fields, with a single registry write committing the bundle slot and the active selection together.
  • Session catalogue and timeline reset on switch; composer drafts are keyed per desktop; pending prompt/continuation recovery is keyed per pair, so a record can only be replayed against the pairing that created it.
  • Late results from the previous connection (prompt ack, presence, sessions, credentials) are rejected instead of mutating the new desktop's state.

Verification

  • npm run typecheck, npm run lint, npm test in mobile/ on the merge with current main: 54 suites / 774 tests pass.
  • New coverage: multi-desktop credential migration and isolation, switch/remove/add flows, late-ack rejection, per-desktop pending prompt and continuation isolation, desktops screen.

Not verified

Two real desktops paired to one phone on device, plus Android/iOS re-pair and revocation timing — needs device testing.

@huichen
huichen enabled auto-merge (squash) September 13, 2026 02:16
@huichen
huichen merged commit 7aa0312 into main Sep 13, 2026
12 checks passed
@huichen
huichen deleted the claude/mobile-multi-desktop branch September 13, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant