I wrote your code in the console, pressed enter, restarted electrum but I see the same amount of addresses.
I also entered his coinbase wallet app, I can see all the transactions up to 3 days ago. I tried all 10 different wallets that you find by pressing settings/advanced/active wallet but everything is empty. Also, no matter which wallet I tried, they all show the same exact transactions.
Another thing that doesn't app up is that the transaction list shown in the app does not coincide 100 % with the 2 wallets I have found with electrum. The transactions I found on the segwit electrum wallet are not shown in the coinbase wallet app.
The transactions I found on the legacy electrum wallet are shown in the coinbase wallet app, but not all of them and some that are listed in the coinbase wallet up are not present in the electrum wallet.
So there's clearly a mess going on here. Same seed, same wallet and not all txs show up?