Fix discovered identity profile sync#105
Merged
Merged
Conversation
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
Summary
Root cause
#104 fixed the writer side by installing protocols before identity profile writes. The remaining failure was on the reader side: wallet 1 learned about identity 2 through agent DID sync, so the identity shell appeared in
agent.identity.list(), but the already-running session never registered identity 2 for profile/social/connect sync. Since identity 2 profile records were written before wallet 1 opened those subscriptions, wallet 1 also needed a historical pull before the profile query could return display name, avatar, and banner data.Tests
bun run test -- src/enbox/__tests__/identity-sync.test.ts src/enbox/hooks/__tests__/use-identity-sync-reconciliation.test.tsx src/enbox/hooks/__tests__/use-sync-query-invalidation.test.tsxbunx tsc -bbun run testbun run lint(passes with existing Testing Library warnings)bun run build(passes with existing chunk-size warnings)