scratchfoundation / scratchfoundation/scratch-editor
Face sensing can get stuck in the project (also the translate extension)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 281
- Forks
- 276
- Avg merge
- 7d 8h
- Merged PRs (30d)
- 6
Description
Expected Behavior
When all face sensing blocks and monitors have been removed, the face sensing extension is deleted from the project after reloading.
Actual Behavior
The project still loads the extension and turns on the camera. If the project also has cloud variables, they are disabled, but the warning text isn't shown on the project page.
https://scratch.mit.edu/projects/1225257855/
Steps to Reproduce
- Go to 'https://scratch.mit.edu/projects/editor'
- Add Face Sensing
- Show the "face tilt" monitor
- Move it slightly
- Hide the monitor
- Save and reload
It also works with the translate extension and the "language" reporter, but the face sensing has much more impact when it's stuck.
I think the bug happens because the monitor stays in the JSON so that Scratch can remember its position. This makes Scratch load the extension, even though the monitor is hidden.
System Details
I've tested it on Windows 10, Chrome 141
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 in the Scratch editor with Face Sensing, then inspect the saved project JSON and the reload path that loads extensions from monitors. Compare hidden Face Sensing and Translate monitors, and verify that removing them prevents extension loading and camera activation while preserving the cloud-variable warning text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100