microsoft / microsoft/pxt-microbit

Simulator can continue playing audio when on homepage

Open
#6,590 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

MEF 2026 MEF-medium P2 Simulator
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:

  1. Open https://makecode.microbit.org/_1iJ0AbdRiHXo
  2. Wait for simulator to load, hear a sound, then click 'stop'
  3. Return to the homepage
  4. Re-open the program, see that the simulator starts to load
  5. Return to the homepage before the simulator has fully loaded
  6. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.