This should be all that is needed to allow multitenancy single wallet mode to work with the rekey feature. In single wallet mode the multitenant_sub_wallet is always created without a key. I guess this is ok because the subwallets should have a key.
When the rekey feature was applied it would send the new key to try to open the multitenant_sub_wallet, resulting in a failure to open the wallet.
This should be all that is needed to allow multitenancy single wallet mode to work with the rekey feature. In single wallet mode the multitenant_sub_wallet is always created without a key. I guess this is ok because the subwallets should have a key.
When the rekey feature was applied it would send the new key to try to open the multitenant_sub_wallet, resulting in a failure to open the wallet.
There is other work to be done here. Right now in single wallet mode it is possible to make subwallets without a key and there is no rekey feature for subwallets. See https://github.com/openwallet-foundation/acapy/issues/3307