bug: Multiplayer editing/deploy cycles reverts to older version of script #5042
Open
Description
Describe the bug
When going through cycles of script revision and deploy, if a multiplayer session has been involved by clicking the mp button, the next mp session code in the editor reverts to a previous version. So if Dev A intermittently calls in Dev B for help, the code shared between the two parties is out of date in later mp sessions.
To reproduce
Start with a script and deploy. Add a comment line solo or in mp session and deploy again.
import os
import wmill
def main(input: str):
"""
Changes:
1. script created and deployed by admin
2. added comment by dev A (solo)
3. Multiplayer session - admin joins dev A via link. Dev A adds this comment and deploys
4. dev A still in multiplayer. Admin has left - Dev A adds this comment and deploys. Script Diff shows only this comment
5. dev A has run this script once. Then added this comment and deployed.
6. Every multiplayer session from here on, reverts to the 4th comment being the last line in this text block.
Is this intended behaviour?
"""
print(input)
Expected behavior
Expectation is that the code in the editor does not jump back X number of revisions when clicking the mp button
Screenshots
In our case we jump a couple revisions back every time we flip the mp session button.
Browser information
Chrome Version 131.0.6778.264 (Official Build) (64-bit)
Application version
EE v1.441.2-2-g383ecf846
Additional Context
No response