Repository navigation
Take the OT extension's session id from the channel - #46
Merged
Merged
Conversation
SH2PCSession had ALICE pick a random session id, send it to BOB, and both set it on the OT extension. Drop that exchange: with no explicit id, the OT extension takes the channel's next session id (emp-tool's IOChannel::next_session_id()) when it starts. That id comes from a root the parties agree on when they connect, so neither party picks it, and the session sends one block fewer. On a channel without a session root the id is zero. Requires emp-tool's channel session ids and emp-ot's default to them; transcripts change, so both parties must upgrade together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit needs emp-tool's channel session ids and emp-ot's default to them, which are on emp-tool's session-id branch and emp-ot's channel-sid branch until those pull requests merge. Drop this commit once both are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
SH2PCSessionhad ALICE pick a random session id, send it to BOB, and both set it on the OT extension. This drops that exchange: with no explicit id, the OT extension takes the channel's next session id when it starts (emp-ot's default from emp-toolkit/emp-ot#100, built on emp-toolkit/emp-tool#220). That id comes from a root the parties agree on when they connect, so neither party picks it, and the session sends one block fewer. On a channel without a session root the id is zero.Compatibility
Transcripts change, so both parties must upgrade together. Needs emp-tool with channel session ids and emp-ot with its default to them.
Tests
test_otfails in CSW's check.Merge order
The second commit points CI at emp-tool's
session-idand emp-ot'schannel-sidbranches. Merge emp-toolkit/emp-tool#220, then emp-toolkit/emp-ot#100, then drop that commit and merge this.🤖 Generated with Claude Code