@BoneTone Right now it will create duplicates of the "always open" pages. I did it that way because it seemed safer, but I could probably do that.
Looking at chrome.tabs, there is a move method, so I could move already existing tabs if they match.
Also, right now, the tabs are added to the end of the list. I haven't played around with it yet, but the create method has an index parameter, so puting the tabs at the top of the list could also probably be done.
There would then probably be 2 new config variables:
IS_MOVE_PREEXISTING_PAGES w/ value of true or false
IS_TAB_CREATED_AT_END w/ values of true or false
Do you want me to try and make these changes?
Also, a session with multiple windows opening at startup might create a race condition or prevent both windows from opening the pages when IS_ONLY_OPENED_ON_INITIAL_WINDOW is set to true. I will look into that...
Restoring sessions seems to be buggy. You should always save your browser session to make sure ('save open tabs as session'). If a third party session manager does the job better in your opinion, stick with that.
@nightraven I'm pretty sure that one of the answers on the site that I linked explained why it's 1601... 😉
It took me like 5 seconds to find the answer, though I don't blame you, as this happens to everyone - one can be so focused on trying to solve something, that they don't see the most obvious solution which is literally right in front of their eyes... 😁