Repository navigation
feat(lan): add nearby people from the Share dialog; one mutual add (#262) - #265
Merged
Merged
Conversation
) Nearby people are listed under your people in the Share dialog, each with Add, and the person you add is ticked while the dialog stays open. Adding is now mutual in one exchange: after a correct pairing code both screens show a four-character confirm code, and the person being added presses Add to store both keys, or Decline to store nothing. Add back is gone. Announcements carry v=2; an older peer is listed with Add disabled and "Needs update". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #262.
Approved design: https://claude.ai/artifact/XvWgSvNfZ1WEnssqab125D (the Approved design page, signed off 2026-11-18, option A). Spec:
specs/2026-11-18-lan-add-from-share/plan.md.What changes
Share dialog: people on your network you haven't added are listed under Nearby, below your people, each with Add. The person you add is ticked and the dialog stays open. With nobody added yet but someone nearby, the picker shows only Nearby. The one-time setup screen now appears only when nobody is nearby.
One mutual add: after a correct pairing code, nothing is stored yet. Both screens show the same four-character confirm code:
"X added you · Add back" is gone. Settings ▸ Network uses the same flow.
Older versions: announcements carry
v=2. Av=1peer is listed with Add disabled and Needs update, in both Share and Settings.Security
Unchanged up to the code: commit-then-reveal, one guess, a wrong code cancels. The confirm code (
confirmCode) is derived from the pairing code. A key swapped in the middle gives the two sides different pairing codes, so the adder's typed code fails before any confirm code appears. The holder stores the adder's key only on Add. The adder stores the holder's key only onaccepted, which the holder sends after storing.docs/security.mdis updated.Tests
confirmCode;v=2announcements, withv=1still read;needsUpdate; the store'snearby,lastAddedand confirm actions.toBeChecked.share.specturns sharing off to reach the one-time setup. Parallel workers share the network, and their apps showed up as Nearby.lan-confirmandshare-nearbysurfaces. 160 measurements across all 20 themes, all above floor.Validation
npm run check: exit 0, 4998 tests.make e2e: 802 passed, 4 skipped, 1 failed (theshare.speccase above). After the fix,share,lan-pairingandlan-sendpass 12/12 with two workers.🤖 Generated with Claude Code
https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n