The generated code could be failed to parse and the error message were streaming back to UI, however, if that happened, the latest assistant response were not streamed because the while loop was break, so moved the code to stream back assistant response first before parse code action.
Confirmed with running examples in UI and make sure the UI behaves the same.
The generated code could be failed to parse and the error message were streaming back to UI, however, if that happened, the latest assistant response were not streamed because the while loop was break, so moved the code to stream back assistant response first before parse code action.
Confirmed with running examples in UI and make sure the UI behaves the same.