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.
Should be shipping today, I’m just getting the code reviewed.
Pi (in the left pane) will generate all code now. I also made other improvements to the code we generate. Hoping it will address bugs with the old code gen popup and be a net better product
this should be out, let me know how it works for you. Pi will always try to suggest pre-built components if they’re available (e.g. if you ask “add a row to Google Sheets” it will suggest the standard action), but you can always say “write code to ” and it should write code for you
I tried it and it doesn’t seem to ahve the context of the action step I curently have. I asked it to edit my current action and it just wrote a totally new action step that had nothing to do with my current one
yes, this is a regression with the edit flow and I apologize. As a workaround for now, just copy and paste your code into the Pi query, but I’ll adjust the Edit with AI button to pass the context automatically and let you know when that’s done
I pushed some changes to code gen, and Pi (in the product, not in Slack) now has access to the configuration and code in your workflow, so if you try to simply say “edit to do “, or even ask it about props / config, it should work. Let me know how that feels — appreciate you iterating with us
I tested the debug error flow on one of my own workflows and that worked. Can you stop generating, create a new chat from Pi, then try to click the Debug with AI button once more?
It’s likely a bug in some of the context being passed re: the step and the error behind the scenes. I’ll see if I can trace the request in our logs. Just to set expectations, I’m on another major project now so I may not be able to look into it this week