mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8523] [MERGED] Multiplayer: rejoin as your own hero after removal, ask before Leave, explain a refused Approve #8652
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8523
Author: @kolacheee
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @kolacheee
Base:
staging← Head:fix/room-rejoin-and-leave📝 Commits (5)
f979c90fix(multiplayer): rejoin as your own hero after removal, ask before Leave, explain a refused Approve1bbfc70fix(multiplayer): wake the waiting guest on a refused Approve, drop a re-id'd member's sprite2873e67Merge branch 'staging' into fix/room-rejoin-and-leave9a8a582fix(game): let exact-name party members claim their combat unit firstb6e06c6Merge branch 'staging' into fix/room-rejoin-and-leave📊 Changes
11 files changed (+189 additions, -27 deletions)
View changed files
📝
e2e/multiplayer-controls.e2e.ts(+11 -0)📝
packages/client/src/components/game/GameSurface.tsx(+29 -12)📝
packages/client/src/features/multiplayer/MultiplayerChat.tsx(+11 -0)📝
packages/client/src/features/multiplayer/MultiplayerHostControls.tsx(+17 -2)📝
packages/client/src/lib/game-character-name-match.ts(+14 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/services/multiplayer/game-persona.ts(+20 -2)📝
packages/server/src/services/multiplayer/service.ts(+16 -2)📝
scripts/regressions/multiplayer-game-persona.regression.ts(+59 -1)📝
scripts/regressions/multiplayer-seat-key-security.regression.ts(+5 -2)📝
scripts/regressions/multiplayer-session-lifecycle.regression.ts(+5 -6)📄 Description
Linked issue
Follows #6790 (secure multiplayer). These are fixes from a two-player Game room playtest; no separate issue was opened.
Why this change
identity-conflict, because the hero's card was still bound to the old seat.persona:activeentry. The fight then started with two members sharing one id and was refused: "Invalid combat sides or duplicate units".What changed
identity-conflict, so the guest sees "This character name is already in use…". The refusal wakes the guest's waiting poll at once, instead of leaving it to the 20 s timer. The host gets an alert saying how to free the name: remove that seat under Players, or ask them to join under another character name.Validation
pnpm checkpasses locallyCONTRIBUTING.mdEvery
multiplayer-*regression passes on this branch.multiplayer-game-personagained the rejoin case and source checks.multiplayer-seat-key-securityandmultiplayer-session-lifecyclenow expect a refused request to end with its reason, instead of waiting for the host to decline it.chat-window-iconsandfloating-windowalso pass, and so do client tsc, eslint on the changed files, and the locale check. Server tsc reports onlymmd-parser/@takahirox/three-mmdtype errors, because those packages aren't installed in this checkout; none are in the changed files.pnpm checkwasn't run in full here.Manual verification notes
These were checked by a two-machine room playtest, host and guest, on the same changes in our working branch:
e2e/multiplayer-controls.e2e.tspassed 44/44 on desktop-chromium and mobile-chromium (WebKit isn't installed there). Its "Leave in an old joined chat" test now answers the confirm.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Two new English UI strings (
multiplayer.guest.leaveConfirm,multiplayer.host.approveConflict).UI evidence (if applicable)
Leave's confirm and the host's alert use the app's existing dialogs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.