Skip to content

Fix join message#82

Merged
alexjg merged 2 commits intomainfrom
fix-join-message
Mar 10, 2026
Merged

Fix join message#82
alexjg merged 2 commits intomainfrom
fix-join-message

Conversation

@alexjg
Copy link
Copy Markdown
Owner

@alexjg alexjg commented Mar 10, 2026

Problem: the automerge-repo JS implementation saves sync states of
remote peers in local storage in order to speed up initial sync with
previously connected peers. The sync state is saved if the initial join
message from a peer contains a peerMetadata field with isEphemeral: false and a storage ID. We currently encode the peer metadata in the
join message under the wrong key, which causes the JS implementation to
ignore it and not save the sync state.

Solution: encode the peer metadata under the correct key in the join
message

alexjg added 2 commits March 10, 2026 13:46
Problem: the automerge-repo JS implementation saves sync states of
remote peers in local storage in order to speed up initial sync with
previously connected peers. The sync state is saved if the initial join
message from a peer contains a `peerMetadata` field with `isEphemeral:
false` and a storage ID. We currently encode the peer metadata in the
join message under the wrong key, which causes the JS implementation to
ignore it and not save the sync state.

Solution: encode the peer metadata under the correct key in the join
message
@alexjg alexjg force-pushed the fix-join-message branch from 4548525 to addd778 Compare March 10, 2026 13:47
@alexjg alexjg merged commit 21335b0 into main Mar 10, 2026
1 check passed
@alexjg alexjg deleted the fix-join-message branch March 10, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant