Repository navigation
fix(lan): adding back ends it; received items save under lan > sender - #261
Merged
Merged
Conversation
…d back again
When you already had someone's key and they added you, you still got 'X added
you · Add back'. Once both sides had added each other, every Add back raised
another one, forever. The tests missed it because the helper always dismissed
the prompt with Not now. The holder now checks its trust store when a code
matches: if it already has the adder's key it shows '{name} added you back' as
a notice, with no dialog. The adder's close no longer races the trust lookup.
Unit and e2e tests seen failing first; the e2e helper accepts either outcome.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n
A snippet or diff received on the network now saves with a nested tag, lan/<sender name>, so the sidebar groups everything someone sent under lan. A snippet opens with the tag beside its own; a diff's Save dialog offers it (tabs carry suggestedTags, which the save target reads, so the core needs nothing from the network feature). A slash in a sender's name cannot nest deeper. 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.
Adding each other looped. When you already had someone's key and they added you, you still got "X added you · Add back". Once both sides had added each other, every Add back raised another one, forever. The e2e helper always pressed "Not now", which is how the tests missed it.
Received items are tagged
lan > <sender>.lan/<sender name>, so the sidebar groups everything someone sent under lan.suggestedTags, which the save target reads.Verified:
npm run checkpasses.make e2e: 800 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n