I’m sure this is mentioned by someone previously but I can’t find an exact hit.
I duplicated a script in order to removed some unwanted actions. In fact I duplicate a script twice so that I could remove different options in a condition. I renamed those duplicated scripts.
In the visual editor I see this (correctly)
Script: Stop Security Session V2
But in YAML mode I see this
action: script.start_security_session_duplicate_2
metadata: {}
data: {}
Obviously the contents of said scripts are the same. I believe it is just the reference that is different. I think is a bit confusing. In the past I have just copied and pasted into a new script, but it would be nice if the rename option was consistent.