When editing and saving a script, the old version remains active until the phone is rebooted. The old version is nowhere to be seen, but it still triggers. This may be the reason for multiple bug reports dating as far back as 2018 when people ask "why is my script triggered so many times".
You can see this in the Activity History when hitting the refresh button on the Outline page.
To Reproduce
Have clean install
Create single script from condition
Hit refresh on the Outline page
Observe there is only one entry on the Activity History page
Clean the Activity History
Edit the script a bunch of times: Toggle volatile/persistence, save, toggle Reoccurring, save, rename, save, toggle things back, save
Hit refresh on the Outline page
Observe there is a whole bunch of entries on the Activity History page
Clean the Activity History
Reboot phone
Hit refresh on the Outline page
Observe there is now one single entry on the Activity History page again.
Expected behavior
Editing and saving a script removes the old script from being triggered
Describe the bug
When editing and saving a script, the old version remains active until the phone is rebooted. The old version is nowhere to be seen, but it still triggers. This may be the reason for multiple bug reports dating as far back as 2018 when people ask "why is my script triggered so many times".
You can see this in the Activity History when hitting the refresh button on the Outline page.
To Reproduce
Expected behavior
Editing and saving a script removes the old script from being triggered
Extra phone info: