# Bug: Pasted Function Disappears After Publish

**URL:** <https://community.mindstudio.ai/t/bug-pasted-function-disappears-after-publish/1919>\
**Category:** Bug Reports\
**Created:** [January 17, 2026, 10:53pm UTC](https://community.mindstudio.ai/t/bug-pasted-function-disappears-after-publish/1919 "2026-01-17T22:53:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Townsend](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/townsend/32/1146_2.png) [@Townsend](https://community.mindstudio.ai/u/Townsend)\
**Post date:** [January 17, 2026, 10:53pm UTC](https://community.mindstudio.ai/t/bug-pasted-function-disappears-after-publish/1919/1 "2026-01-17T22:53:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alex\_MindStudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/alex_mindstudio/32/27_2.png) [@Alex\_MindStudio](https://community.mindstudio.ai/u/Alex_MindStudio)\
**Post date:** [January 19, 2026, 1:47pm UTC](https://community.mindstudio.ai/t/bug-pasted-function-disappears-after-publish/1919/2 "2026-01-19T13:47:59Z")

</div>

Hi @Townsend,

Thanks for flagging this!

I’ve submitted a report to our engineers to investigate further and will follow up as soon as I have an update.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [January 20, 2026, 5:07pm UTC](https://community.mindstudio.ai/t/bug-pasted-function-disappears-after-publish/1919/3 "2026-01-20T17:07:24Z")

</div>

Should be fixed now thanks!
