Repository navigation
test(id-web): WebSocket sessions under a publication mount work (#11290) - #11482
Merged
Merged
Conversation
…ount (#11290) The mount layer rewrites the request in place and keeps its extensions, so hyper's upgrade handle reaches the mounted world's bridge. Add a real-connection test (authorized join snapshots the mounted world, an invalid capability does not join) and drop the stale doc note that claimed upgrades under a mount could not complete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 18, 2026 03:52
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 18, 2026
Closed
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.
Before: the publication mount layer's doc said WebSocket upgrades under a mount do not complete, and no test covered a WebSocket session under a mount, so #11290 stayed open as a known limit.
After: a real-connection test shows a WebSocket session under a mount works: an authorized join at
/prog/ws/worldsnapshots the mounted world, and an invalid capability is not admitted. The stale doc note is replaced.The limit never existed for real connections. The mount layer rewrites the URI with
into_parts/from_parts, which keeps request extensions, so hyper'sOnUpgradehandle travels with the request into the program router. Earlier tests drove the router withoneshot, which has no upgrade handle at all, which is likely where the note came from.How: added
publication_mount_websocket_session_round_trips_over_a_real_connectioninroutes.rs(serves the router withaxum::serveon a loopback port, the same wayid servedoes, and connects with tokio-tungstenite), and corrected thepublication_mount_layerdoc comment. No production code changed.Testing:
cargo test -p id-web --lib publication_mountpasses 12/12; clippy on id-web shows nothing new in the touched lines.Closes #11290
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.