Lua script buttons odd behavior

Linux
Nightly Build: 9.2.613

Not sure if this is Ardour / script itself / or just me.
I was playing around with the Action buttons in the main toolbar.
-I click on an empty button
-Dialog appears
-I click on the drop down to select a script
-I choose Add Audio Track
-I click Add
-The button now shows A so it is assigned
-The first time I click on this button it does work, a new audio track gets created
-However, when I click on that button again, it shows dialog again as if the button was never assigned to this Lua script.
I would think it would just keep allowing user to create more new Audio Tracks.

Am I doing something incorrectly or is this maybe a bug?

Thank You

Looks like there’s a problem in that script. The Log windows says…

LuaInstance: action "3": ?:-1: attempt to call a nil value (field 'routeScrollIntoView')

When scripts crash like that they get unloaded/forgotten. (Lua Scripts > Script Manager shows what’s currently assigned/loaded.) That’s why clicking the button the next time shows the dialog, because nothing’s loaded for that button now despite the “A” still being shown.

Mute All Tracks works fine, for example.