Describe the bug
A bot will enter into an infinite loop if the default 'error' flow always transitions back to the 'main' flow.
To Reproduce
Steps to reproduce the behavior:
Create a new empty bot, and add a message saying "Error" to the default 'error' flow. Create an additional flow called "flow-1" that the main flow always transitions to.
Force an error by going to the advanced editor and editing the 'main.flow.json' file to transition to a flow that does not exist. In my example, I changed 'flow-1' to 'flow-2.'
Add a transition to the 'error' flow to always transition back to 'main.'
Talk to the bot and see the infinite loop.
Expected behavior
Botpress core should detect and break out of the loop somehow.
Screenshots
See above.
Environment (please complete the following information):
OS: Linux Mint 20.1 Cinnimon
Browser Chrome
Browser Version 96.0.4664.45 (Official Build) (64-bit)
Describe the bug A bot will enter into an infinite loop if the default 'error' flow always transitions back to the 'main' flow.
To Reproduce Steps to reproduce the behavior:
Create a new empty bot, and add a message saying "Error" to the default 'error' flow. Create an additional flow called "flow-1" that the main flow always transitions to.![Error_Step2](https://user-images.githubusercontent.com/77560236/143896940-8e803e39-2977-45aa-bd91-534dace031ea.png)
Force an error by going to the advanced editor and editing the 'main.flow.json' file to transition to a flow that does not exist. In my example, I changed 'flow-1' to 'flow-2.'![Error_step3](https://user-images.githubusercontent.com/77560236/143897123-771e556d-2104-49d5-8a98-bf83b6008e96.png)
Add a transition to the 'error' flow to always transition back to 'main.'![Error_Step4](https://user-images.githubusercontent.com/77560236/143897215-bb645bfb-ea5e-4c6a-9c98-baddbfa3ea80.png)
Talk to the bot and see the infinite loop.![Error_Step5](https://user-images.githubusercontent.com/77560236/143897248-30991792-e166-4133-8e19-567451d2a8e7.png)
Expected behavior Botpress core should detect and break out of the loop somehow.
Screenshots See above.
Environment (please complete the following information):