Skip to content

test(id-web): WebSocket sessions under a publication mount work (#11290) - #11482

Merged
dezren39 merged 1 commit into
mainfrom
claude/id-ws-under-mount-11290
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/id-ws-under-mount-11290

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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/world snapshots 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's OnUpgrade handle travels with the request into the program router. Earlier tests drove the router with oneshot, 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_connection in routes.rs (serves the router with axum::serve on a loopback port, the same way id serve does, and connects with tokio-tungstenite), and corrected the publication_mount_layer doc comment. No production code changed.

Testing: cargo test -p id-web --lib publication_mount passes 12/12; clippy on id-web shows nothing new in the touched lines.

Closes #11290


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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
dezren39 marked this pull request as ready for review November 18, 2026 03:52
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 03:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T03:53:44.256580Z 073aa61 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 7c3c1df into main Nov 18, 2026
@dezren39
dezren39 deleted the claude/id-ws-under-mount-11290 branch November 18, 2026 03:52
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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.

id: WebSocket upgrades under a publication mount do not complete (#5537 phase-4 residual)

2 participants