Describe the bugFailed to connect when reconnect the device
Steps to reproduce the behavior
1.Navigate to https://makecode.microbit.org/beta
2.Complete a tutorial and then connect the device to computer, the device connected automatically.
3.Click Disconnect in download options, and still plug in the device USB.
4.Click 'Connect the device' in the download options and reconnect the device.
Actual behavior:
Shows 'Failed to connect' dialog.
Expected behavior:
Reconnect the device successfully.
Describe the bug Failed to connect when reconnect the device
Steps to reproduce the behavior 1.Navigate to https://makecode.microbit.org/beta 2.Complete a tutorial and then connect the device to computer, the device connected automatically. 3.Click Disconnect in download options, and still plug in the device USB. 4.Click 'Connect the device' in the download options and reconnect the device.
Actual behavior: Shows 'Failed to connect' dialog.
Expected behavior: Reconnect the device successfully.
Screen Recording:![connectdevice](https://github.com/microsoft/pxt-microbit/assets/148834117/4714e7bb-f9bf-4af3-8df2-945301e56158)
Additional context: 1.OS: Windows11, iMac Ventura 13.6.6 2.makecode.microbit,org version: 7.0.11 3.Microsoft MakeCode version: 10.0.23