Skip to content

libs/trystero: count the negotiating room as advertised (fixes the interop 'one room leaving' flake) - #70

Merged
pinhopro merged 1 commit into
mainfrom
fix/trystero-lost-first-frames
Dec 5, 2026
Merged

pinhopro merged 1 commit into
mainfrom
fix/trystero-lost-first-frames

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

What this changes

This moves the libs/trystero gitlink to webcpporg/trystero#11 (7693e2b), which fixes the flaky browser interop scenario "One room leaving, either side, leaves the other room and the connection". That scenario failed on main in CI run 47519299767.

Root cause

Chrome dropped the page's first frames on its answering channel: its presence, and its @_hsready for the first room. The C++ first room, bound by its own negotiation, timed its handshake out and kicked the page. Its rebinding then waited for an advertisement that a Trystero JS page never sends again.

Fix

The room whose negotiation made a connection now counts as the remote's advertisement. After the kick, the rebinding at 11 s brings the page back to that room. No timeout changed.

Proof

There is a new deterministic interop scenario for this case. It failed 7 runs of 7 before the fix and passed 20 runs of 20 after it. The full browser interop passes 27 of 27 scenarios, and the macOS and Linux lints are clean.

🤖 Generated with Claude Code

…room as advertised, so that the browser interop's "one room leaving" no longer fails when Chrome drops the page's first frames (webcpporg/trystero#11, 7693e2b)
@pinhopro
pinhopro merged commit f2aeee3 into main Dec 5, 2026
193 checks passed
@pinhopro
pinhopro deleted the fix/trystero-lost-first-frames branch December 5, 2026 19:20
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