Maybe a stupid question, but is it expected that local and instance variables do not work when defined in a User Prompt?
Example:

Result:

[mwe] Local and Instance variables in a prompt.kmmacros (4.2 KB)
Edit / PS:
In the meantime I found out that when I define the variables before the User Prompt, then the original values are kept. That is, the local and instance variables seem to be completely ignored in the User Prompt:

[mwe] Local and Instance variables in a prompt II.kmmacros (4.8 KB)
Result:

โ
I think something is wrong here. (@peternlewis ?)