This week starting with the Firefox 125 release I have noticed that all macros start start from CLI all error with the Invalid tab id error even if Firefox is already open. Macros started from the extension or from bookmarks start as expected.
It appears to be some timing error where the extension needs a little more time to connect because if the extension is already loaded/open the error does not occur.
Has anyone else seen this issue?
As a workaround, in my scripts I start a dummy macro that does nothing which errors with the Invalid tab id, sleep for 5 seconds, then start the intended macro. This works because the extension is now loaded/open.