Skip to content

Mobile 4: QR pairing and paired-device management #1652

Closed

Description

@DoodleBears

Parent

#1644 (hub #1643)

What to build

The Human opens "Pair a phone" in the Web Client, which shows a one-time, short-lived QR code (and a copyable link) carrying the Host identity and its reachable route (Tailscale HTTPS). The app scans it, stores a per-device credential in Keychain/Keystore, and from then on connects on its own, including after Host restarts, replacing the development token login from #1650. The Web Client lists paired devices with name, pairing time and last-seen time; revoking one immediately refuses its requests and ends its open streams, and the app shows "pair again".

Use the admission mechanism decided in #1649. The Device Pairing Host module owns offers, device records, verification, revocation and the advertised routes; secrets are stored hashed; pairing and admission events are recorded as bounded developer diagnostics without secrets. The Web Client warns when no phone-reachable route exists.

Acceptance criteria

  • Pair a physical phone by scanning the QR code; the offer works once and expires
  • After a Host restart the paired phone reconnects without any token
  • Paired devices list shows the phone with last-seen time
  • Revoke refuses the next request with a coded error and closes open streams; the app shows "pair again"
  • Device credential never appears in logs, diagnostics bundles, CLI output or the repo
  • Device Pairing module tested through its public interface; one live isolated-Host test covers pair → restart → call → revoke → refused
  • Web Client UI follows dsh-ui conventions with before/after screenshots; Human QA on a device

Blocked by

Activity

  1. added this to the v2.0 milestone on Oct 14, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:fullstackEnd-to-end Host and Client implementation
    scope:tracerHuman-testable implementation slice
    feature:identityPersonaBot identity, lifecycle, and deletion
    on Oct 14, 2026
  3. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim


    Generated by Claude Code

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 14, 2026
  5. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Outcome: #1668 merged into main (and #1674, the agent-run phone journey, merged into it). #1671 (Mobile 5) is built on it and merged too.

    Acceptance criteria status:

    • The offer works once and expires (unit tests; protocol and phone UI journeys)
    • After a Host restart the paired phone reconnects without a token (scripts/e2e-device-pairing.mjs, scripts/e2e-mobile-pairing-web.mjs)
    • The paired devices list shows last-seen time
    • Revoke refuses the next request with a coded error (device-revoked), closes open streams, and the app shows "Pair again"
    • The credential is absent from the Host log, logs.db and the console; only its hash is stored
    • The module is tested through its public interface, plus live isolated-Host tests (pair → restart → call → revoke → refused)
    • The Web Client follows dsh-ui, with before/after screenshots in Mobile 4: pair a phone by QR code and manage paired devices #1668
    • Human QA on a physical phone (camera scan in a new development build) is still open. The runbook is in apps/mobile/README.md. This issue stays open until that check is done.

    The feature map entry for agents is .agents/skills/verify-deepseekbot/features/phone-pairing.md.


    Generated by Claude Code

  6. DoodleBears commented on Oct 17, 2026

    @DoodleBears
    ContributorAuthor

    Human-authorized issue reconciliation (2026-10-18). QR pairing/device management was delivered in #1668, merged into main. This thread's later real Android Human camera scan and restart-persistence evidence is recorded in #2025. Earlier protocol/revocation evidence remains in #1668. Closing the delivered slice per Human instruction.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDsarea:fullstackEnd-to-end Host and Client implementationfeature:identityPersonaBot identity, lifecycle, and deletionready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions