fix(client): honor List in lobby for LobbyOnly / P2P broker hosts - #6595
fix(client): honor List in lobby for LobbyOnly / P2P broker hosts#6595marktech0813 wants to merge 1 commit into
Conversation
LobbyOnly P2P hosting always registered with public:true and overwrote hostIsPublic from useBroker, so disabling List in lobby still advertised the room. Pass settings.public through registerHost and keep hostIsPublic aligned (phase-rs#6556). Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Closing per docs/AI-CONTRIBUTOR.md §0.1.1: this PR was authored in a Composer session, and Composer is not on the Frontier tier accepted for PRs opened on/after 2026-07-24. Reporting accurately rather than misdeclaring the model. The fix itself is on branch |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughP2P broker hosting now uses the host’s “List in lobby” setting for broker registration, store state, and broker-client setup. Tests cover private ChangesP2P lobby visibility
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant HostSetup
participant multiplayerStore
participant Broker
participant GameProvider
HostSetup->>multiplayerStore: Start P2P hosting with public setting
multiplayerStore->>Broker: registerHost(public: settings.public)
Broker-->>multiplayerStore: Return game code and player token
multiplayerStore->>GameProvider: Update hostIsPublic
GameProvider->>Broker: Open broker with hostIsPublic
Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
public: trueand sethostIsPublicfromuseBroker.LobbyGameAdded/public_games().Changes
startP2PHostingSession: passsettings.publictoregisterHost; keephostIsPublic = useBroker && settings.publicthrough both connecting and waiting states.GameProviderP2P host broker registration: usestore.hostIsPublicinstead of hardcodingtrue.multiplayerStore.test.ts.Validation
pnpm exec vitest run src/stores/__tests__/multiplayerStore.test.ts— 19 passed.crates/engine/edits.Test plan
Model: Composer
Made with Cursor
Summary by CodeRabbit
Bug Fixes
Tests