`tmp_dir` in `crates/engine/tests/script_startup.rs` now returns
`vectorcraft_testkit::TempDir`, which deletes the folder when the test
ends, also after a failed assertion. Before, every run left its folders
under the system temporary directory.
In the app, script.startup.run starts only the first queued run inside the request; the later
startup scripts and the chosen script start from the frame loop. Each of them now starts, and its
file is read, in the scope captured when the queue was built, so a confined request's automation
roots apply to every run it queued.
A startup round whose listing of the Startup Scripts folder stopped at a limit or skipped an entry now says that the folder was not read in full, at launch and before a script chosen from File > Scripts. A folder that cannot be read is named before a chosen script too, not only at launch.
The notes of a round (startup scripts that could not start and the two folder notes) no longer replace each other: the status bar shows the first and its hover lists them all. When the round's last run ends they show again, with that run's message in the hover, so a later message does not hide them.
script.startup.run returns the startup scripts that could not start before the first run did, such as a file larger than 8 MiB, in its reply's failed list. The launch and the File > Scripts runs now show each one in the status bar as name: error, so a launch where every startup script fails to start no longer shows nothing.
- A chosen script that script.run would refuse (a missing file, one larger
than 8 MiB, bad parameters) ends script.startup.run with script.run's
error before any startup script runs.
- When a queued run ends, the next one starts at the following pump, so
the ended run's report stays for the status bar. The queue counts as a
running script, so other runs and edits stay refused in that gap, and
Stop asked for in it stops the run that starts next.
- Queued runs that could not start show in the status bar in the same
frame, and the reply's failed list is not shown there again.
At launch, when Run Startup Scripts is on and the Startup Scripts folder is there but cannot be read, or a file is where the folder should be, the status bar says the folder cannot be read. The message does not carry the folder's path, so automation replies under read roots do not show it.
vectorcraft-cli attaches the same Startup Scripts folder for script.startup.run and never runs it on its own.
With Preferences > General > Run Startup Scripts on (off by default), the
.jsx files of the Startup Scripts folder next to the preferences run when
VectorCraft starts and before each script chosen from File > Scripts,
installed or Other Script..., one at a time and sorted by name without
regard to case. Each runs with the limits of any script and its own undo
step; one that cannot be read, is too large or fails is named in the
Script Console and the status bar, and the next one runs, then the chosen
script. Nothing runs in Safe Mode; after a launch that stopped, they run
once Disable and Continue or Start Normally is chosen, and the launch
marker names the running startup script so a stop there offers to disable
it. script.startup.run runs the folder; script.* is refused inside
scripts, so a startup script cannot start another round.