Bug: Converse API for latest version for botpress : 12.20.1 is not giving all responses

Hi,
I am trying to work with converse API with the attached bot. I am only getting part responses for the bot.

{
    "responses": [
        {
            "type": "typing",
            "value": true
        },
        {
            "type": "text",
            "markdown": true,
            "text": "Hi"
        },
        {
            "type": "typing",
            "value": true
        },
        {
            "type": "text",
            "markdown": true,
            "text": "test 1"
        }
    ]
}

There should be an additional message test2, in the response but I am not receiving it.
Attached bot :
Bot tgz file

When debugging with dialog engine I can see all the nodes being executed : -

 (debug) (bot: test-converse) 2021-04-06T14:56:43.741Z bp:dialog (test-converse) [abcdef7] init new context { currentNode: 'entry', currentFlow: 'main.flow.json' }{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.742Z bp:dialog (test-converse) [abcdef7] render element "#!builtin_text-z6XBTV"{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.744Z bp:dialog (test-converse) [abcdef7] eval transition "always" to [node-1]{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.745Z bp:dialog (test-converse) [abcdef7] transit (main.flow.json) [entry] -> [node-1]{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.747Z bp:dialog (test-converse) [abcdef7] render element "#!builtin_text-ggm8wk"{ botId: 'test-converse' }  
 (debug) (bot: test-converse) 2021-04-06T14:56:43.751Z bp:dialog (test-converse) [abcdef7] eval transition "always" to [node-2]{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.752Z bp:dialog (test-converse) [abcdef7] transit (main.flow.json) [node-1] -> [node-2]{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.753Z bp:dialog (test-converse) [abcdef7] render element "#!builtin_text-UxoKIz"{ botId: 'test-converse' }
 (debug) (bot: test-converse) 2021-04-06T14:56:43.757Z bp:dialog (test-converse) [abcdef7] ending flow{ botId: 'test-converse' }

I have tried to change the await Promise.delay(10000) in the _createDonePromise in the converse Service, but it didn’t work.

@spgin Could you please help

@allardy Can you check this for #4674

Updated Response : -

{
    "responses": [
        {
            "type": "typing",
            "value": true
        },
        {
            "type": "text",
            "markdown": true,
            "text": "This is first message"
        },
        {
            "type": "typing",
            "value": true
        },
        {
            "type": "text",
            "markdown": true,
            "text": "This is second message"
        },
        {
            "type": "typing",
            "value": true
        }
    ]
}

Hello,

This has to do with the message buffer not getting all messages before sending it back to you.

They are 2 PRs that are probably going to solve this issue:

I`m expecting to get those merged this week, so you can follow the progress on those PRs.