microsoft / microsoft/pxt-microbit
Simulator can continue playing audio when on homepage
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
If a user switches back to the homepage while the simulator is still (re)loading, and there is audio in the program, the audio ends up playing once the user gets back to the homepage.
To Reproduce
Steps to reproduce the behavior:
- Open https://makecode.microbit.org/_1iJ0AbdRiHXo
- Wait for simulator to load, hear a sound, then click 'stop'
- Return to the homepage
- Re-open the program, see that the simulator starts to load
- Return to the homepage before the simulator has fully loaded
- Sound starts playing on the homepage, with no obvious way to stop it.
Expected behavior
No sound ever plays on the homepage
Screenshots
https://github.com/user-attachments/assets/c43528d2-f347-4818-846c-d4e0556c25b3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the linked MakeCode program by navigating away while the simulator is still loading, then trace how simulator audio behaves across the homepage transition. Done means no simulator audio starts or remains audible after returning to the homepage, including when the program is reopened.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100