Why Does the "Edit with AI" Feature Replace the Entire Code Block Instead of Just Editing It?

This topic was automatically generated from Slack. You can find the original thread here.

Noticing a bug with the new “Edit with AI” where the “Edit Code” directive doesn’t really work, it replaces the entire code block. Here I am asking it to just adjust one function within my action step and it instead scraps the remainder of the code. This happens with all workflows I’ve tried…it rewrites the entire code block rather than editing it.

I’m making some changes to AI code gen that should address this

thank you