Confirm reconnect pairings and add connection discovery settings

Setup now waits for both IndexedDB writes: the acceptor acknowledges its
write, a failure on either side is reported to both people, and the
proposer removes its copy if the acceptor could not save. Every session
that authenticates the paired device compares a check value derived from
the stored pairing, so a one-sided pairing (interrupted setup, or Turn off
reconnect on one device) is turned off on the other side too.

The tracker is chosen under Network settings > Connection discovery
(manual, default from VITE_TRACKER_URL, or custom), stored per browser and
editable during a session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-21 00:30:04 +02:00
1 parent 3659956967
commit acba97a7e1
10 files changed
+309 -55

No files matched your search

+7 -4
View File
@@ -21,10 +21,13 @@
- **Disconnect**, which aborts unfinished writes, and Send/Receive navigation
within a live session. The initial receiver can send files without
reconnecting.
- Experimental tracker reconnect for paired devices. During a verified session,
one person proposes a WebTorrent tracker and the other confirms it; later,
both press **Reconnect** instead of exchanging codes. The tracker only relays
encrypted offers and answers; device proofs still authenticate the session.
- Experimental tracker reconnect for paired devices. Choose a tracker under
**Network settings → Connection discovery**; during a verified session, one
person proposes it and the other confirms it. Setup reports success only
after both browsers saved it, and later sessions compare both copies so a
pairing missing on one side is turned off on the other. Afterwards both press
**Reconnect** instead of exchanging codes. The tracker only relays encrypted
offers and answers; device proofs still authenticate the session.
See the [concept status](docs/webtorrent-reconnect.md#concept-status).
- The hosted-first, serverless [UX roadmap](docs/ux-roadmap.md).