Advanced Flow API update caused Flow UI to fail

Hi,

I experienced an issue on my Homey Pro after an Advanced Flow was modified through the ChatGPT/Homey integration.

The affected flow was called “Beräkna kostnad per kWh”.

After the integration updated the Advanced Flow by adding extra cards and error-path connections (outputError), the Flow section in Homey stopped working and showed:

RangeError: Maximum call stack size exceeded

At the same time, the API temporarily returned no flows at all. After restarting Homey Pro, the flows became accessible again. The affected Advanced Flow was then restored to its previous, simpler structure, and everything returned to normal.

The flow currently reports:

enabled: true
broken: false

Could you please investigate whether the Advanced Flow API can accept and save a flow structure that passes API validation but causes the Flow UI or flow engine to hit a recursive/circular condition and exceed the call stack?

It would be helpful if the API rejected such structures before saving them, rather than allowing a configuration that can affect access to the Flow section.

Best regards,
Håkan

I just wat to add that everyting was made by chat gpt, also the text above. I just want support to know this so they can fix it.

If you need to contact Athom about this, you have to do so via the Support website: https://support.homey.app

This is a community forum that Athom doesn’t use for reports like this.

Am I right when this AI stuff edits your original flow instead of a copy for you to evaluate?
Or did you let it edit your original flow by choice?

Just wondering how much trust some folks in general put into AI …

You usually have to approve it first. So the AI makes a tool call and for the edit Flow tool, you can decide if you want to approve the call or decline it each time, or if it should always approve/decline by default