When generating long code blocks that require pressing the continue generating button will not continue the code in code block form, instead it continues in conversation form and then after it finishes with what should be the conversational post code message it places that inside of a code block instead.
Steps to reproduce:
- Ask to generate code that is long enough to require pressing the double arrow button when the response pauses in order to have it continue to generate the code.
- Observe that the response of code is no longer being contained in the previous code block or even a new code block but instead being generated as code in a conversational formatting. This is a big problem because lets say you are writing Matlab code and instead of using the appropriate character like this: ' it will then start using the character like this: ‘ which is different syntax and will result in an error in matlab. Those are not the same apostrophe characters if you didn’t notice.
My work around is instead of clicking the continue generating button is to instead write a prompt saying please continue from (insert nearest code section line that was complete and not cut short before the pause occurred onwards in code block). For example I’d prompt: we got cut off, please continue to generate the code block from: % Plot the 3D model of the finger with joints and linkages onwards.
Images included to show this bug,