How to let kantu know, that which tab it is

Kantu scripts is running and is in 6th tab in the browser,
Now what happens is scripts fails somehow.
So user correct the step and trying to run from there then it says in red color

“[error] failed to find the tab with locator ‘tab=6’”

So user tried a lot to have and run it further but it says the same.
User closes all the tab but with remains opens up the 6th tab. and tried to run again.
But getting in color red only is .
“Error #101: Kantu is not connected to a browser tab”

Guide me how to resolve it?

Has the macro tab=6 hardcoded? If so, does the 6th tab exist? Can you recreate the same issue with any of the demo macros?

Normally, if I stop a macro, edit it and re-run it, it continues in the active tab. If this does not work in your case, some instructions on how to recreate it will be helpful.