When a module (with the "magic comment") is dragged & dropped into the editor it is added to the filesystem and doesn't replace the user's code in the editor, as expected. However, the script name will change to the name of the loaded file:

Additionally, when using older versions of the editor (e.g. https://python.microbit.org/v/1.0), trying to load an invalid hex file (e.g. from the newer version of the editor) will not load (as expected), but the script name will still change.
Completion criteria - if a user attempts to upload a file and it doesn't replace the main editor code, it also shouldn't change the script name.
When a module (with the "magic comment") is dragged & dropped into the editor it is added to the filesystem and doesn't replace the user's code in the editor, as expected. However, the script name will change to the name of the loaded file:
Additionally, when using older versions of the editor (e.g. https://python.microbit.org/v/1.0), trying to load an invalid hex file (e.g. from the newer version of the editor) will not load (as expected), but the script name will still change.
Completion criteria - if a user attempts to upload a file and it doesn't replace the main editor code, it also shouldn't change the script name.