Magisk requires patching the boot image to gain root. The i believe the boot img gets overwritten during an OS update, and so each time it needs to be repatched. I’m not knowledgable enough to automate patching the boot image automatically after an OS update.