Engine: a recorded script run keeps the steps that ran

The recorder expanded an automate.runScript step from the workbook as it
stood when the recording stopped, so a script edited or deleted during the
recording changed the saved macro, or dropped the step. The run now leaves
the steps it ran with the recorder (Recorder::ran, by step index, within
the byte budget), and the conversion reads those, falling back to the
workbook only when they could not be kept.
This commit is contained in:
prxnvt
2026-10-25 02:18:58 -04:00
parent 1e34a76428
commit b995c7c9a0
7 changed files with 79 additions and 11 deletions
+2 -1
View File
@@ -155,7 +155,8 @@ inferred. Toggles such as Bold are recorded with the state they set (`"on": true
them back sets them rather than flipping them. Commands a macro may not run are left out and
listed in the result, also from the steps of a macro or script run while recording; a macro run
while recording is replaced by its steps when it has no inputs, no output and only plain commands
(otherwise it is left out and listed), and an Automate script run by the script's steps.
(otherwise it is left out and listed), and an Automate script run by the steps it ran, kept when
it ran: editing or deleting the script before the recording stops changes nothing.
## Other commands and storage