Repository navigation
Commshare: store the new leader's team, not player ID, after the leader leaves - #5943
Open
moss-orbit-9f339e wants to merge 1 commit into
Open
moss-orbit-9f339e wants to merge 1 commit into
moss-orbit-9f339e wants to merge 1 commit into
Conversation
…er leaves When the squad leader unmerged, the other members' original teams got isCommsharing = newleader, a player ID. UnitCreated passes that value to Spring.TransferUnit as a team ID, so a unit created on such a team went to the wrong team. The merge path stores a team ID; use leaderTeam. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
When a commshare leader unmerges, store the new leader's team ID in
isCommsharing. The old code stores a player ID, whichUnitCreatedlater passes toSpring.TransferUnitas a team ID.This changes the destination of units created on a remaining member's original team after the leader leaves.
Testing: replay smoke test passed with equal checksums, but did not reach this case. The live case is untested. It needs three squad members with different player and team IDs, followed by a leader unmerge and unit creation on the third member's original team; record the destination team before and after.
AI disclosure: found by OpenAI Codex in a code audit; checked and tested with Claude Code.
🤖 Generated with Claude Code