Only scripts inside scripts.yaml are editable

I created a simple test script via the web interface. I can edit / run this script via the web interface, however, when I save the script it returns to the device page and shows the script, however, when I click on the script I get a dialogue box with “Only scripts inside scripts.yaml are editable.”

HA is running inside a docker on my NAS and is reporting
Home Assistant 2022.12.9
Frontend 20221213.1 - latest

If I navigate to the homeassistant config folder on the NAS then I can see and open scripts.yaml and the content reflects the script I created, however, as I’m still learning about HA, I’d rather use the supplied GUI rather than hand crafting scripts for a while.

If I delete a script from the yaml file and then reload the config, the script is gone in the front-end, but the remaining tests are still un-editable.

Any suggestions on how to resolve would be much appreciated

Try clearing your browser cache.

Try deleting any “Restored” scrips in Settings → Devices & Services → Entities.

Try restarting home Assistant.

What exactly do you mean when you say “via the web interface”?

Do you mean you used: Settings > Automations & Scenes > Scripts > Add Script

It seems to be an issue with the script editor. There are a few scattered reports on the forum. No definite solution, other than one caused by a duplicate “ghost” script that was previously deleted.

Ah, I was going via Settings > Devices > My Device > Scripts, going Settings > Automations allows me to edit, so I guess the device route must do something different behind the scenes.