Skip to content

fix(party): keep a party alive after its other members leave - #27

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/keep-party-alive
Oct 30, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/keep-party-alive

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Proposed changes

A player makes a party, a friend joins, and they play together for an hour. Then the friend's connection drops, or they step away to get food. The player who stayed gets the message that the party was disbanded because the last member left. When the friend comes back a few minutes later, there is no party to rejoin, so the player has to create one again and invite everyone again.

Now a party that loses its other members stays open. The player who is left gets a message that the friend left and that the party closes only if nobody joins for a while. The same rule applies when a leader kicks a member. The party's timer starts when the friend leaves. If someone joins, the timer stops. If the party is alone again later, the timer starts again from that moment. A party that loses its last member still closes right away.

The change follows the OpenSpec change keep-parties-after-members-leave (proposal merged in #25).

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

  • Parties stored before this change have no alone-since time; they keep expiring from their creation, as before. No migration.
  • The party.disbanded reason last-member-left now means that no member remained. The expired-alone lifetimes of parties that lost members are longer than before.
  • Plugin 0.4.0 keeps working with the new backend: after a leave it shows the generic "left the party" line, and it does not show the new "stays open" line.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Test results

  171 files    171 suites   1m 20s ⏱️
  470 tests   470 ✅  0 💤 0 ❌
1 410 runs  1 330 ✅ 80 💤 0 ❌

Results for commit 5724817.

♻️ This comment has been updated with latest results.

A leave or kick that leaves one member keeps the party open. The alone timeout
counts from that departure, a join ends it, and the remaining member is told the
party stays open. Zero remaining members still disband with last-member-left.
Parties stored before this change have no alone-since time and keep expiring
from their creation.
@TheMeinerLP
TheMeinerLP merged commit 9e8ae8f into main Oct 30, 2026
11 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/keep-party-alive branch October 30, 2026 19:42
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