Kantu tab close error

Hello,

Kantu is great software, very flexible and with many options, you are to be congratulated, but I have a problem that is making me very thoughtful, read more:

The functionality
I created a simple macro, to obtain the dollar value (USD / BRL), the macro obtains the value on a website and pastes that value into a field on the page.

The problem
It turns out that when I start the macro using Javascript (CustomEvent ‘kantuSaveAndRunMacro’), the macro tries to close the current tab, where the macro was started.

Tests
When the macro is started by clicking the “Play Macro” button in the Ui Vision extension, the macro works correctly.

Does anyone have any idea how to fix this?

Macro json

{
    "Name": "Coletar Dolar 2",
    "CreationDate": "2020-5-13",
    "Commands": [
        {
            "Command": "selectWindow",
            "Target": "title=\"Macro executed here\"",
            "Value": ""
        },
        {
            "Command": "executeScript",
            "Target": "document.title = \"KantuMacro\";",
            "Value": ""
        },
        {
            "Command": "executeScript",
            "Target": "window.open(\"https://google.com.br\");",
            "Value": ""
        },
        {
            "Command": "waitForPageToLoad",
            "Target": "",
            "Value": ""
        },
        {
            "Command": "selectWindow",
            "Target": "title=Google",
            "Value": ""
        },
        {
            "Command": "executeScript",
            "Target": "document.title=\"KantuWorking\";",
            "Value": ""
        },
        {
            "Command": "open",
            "Target": "https://br.investing.com/",
            "Value": ""
        },
        {
            "Command": "waitForPageToLoad",
            "Target": "",
            "Value": ""
        },
        {
            "Command": "executeScript",
            "Target": "document.title = \"KantuWorking\";",
            "Value": ""
        },
        {
            "Command": "storeText",
            "Target": "id=qb_pair_last_2103",
            "Value": "dolar"
        },
        {
            "Command": "selectWindow",
            "Target": "tab=close",
            "Value": ""
        },
        {
            "Command": "selectWindow",
            "Target": "title=KantuMacro",
            "Value": ""
        },
        {
            "Command": "executeScript",
            "Target": "document.title=\"Macro executed here\";",
            "Value": ""
        },
        {
            "Command": "type",
            "Target": "name=c_c20315",
            "Value": "${dolar}"
        }
    ]
}

Javascript to execute Macro after click Button on the page

>    var_macro = json_macro
>     var w_macro = window.dispatchEvent(new CustomEvent('kantuSaveAndRunMacro', {
>         detail: {
>             direct: true,
>             json: var_macro,
>             storageMode: ''
>         }
>     }));

Thank you

This is a known issue with the latest update V5.5.7, please see here for details:
Embedded Macros Now Close The Page

We will fix this ASAP.

Any beta version that I can test to fix this bug ?

Thank you.

The beta version with the fix is still pending approval in the Chrome store.