It’s nice that you can copy a proven function from one Agent workflow project to another. Code, Configuration and Test Data all imported correctly with a Paste.
Tests run fine.
Though, this newly copied and pasted function is always wiped back to blank when Published. (Also, doesn’t work before Publish.)
This should be easy to duplicate. I ran this scenario at least a half dozen times.
Good work-around: Just have the AI re-create the function.