[Magisk] Deic:
I did a script in post-fs-data.d that runs su daemon if is not running and didn't work... I see what when flash v13 the first time and immediately boot you launch Magisk Manager fastly, you have got root, but after the apk is reinstalled automatically and lost root.

--------- beginning of main
D/Magisk ( 248): client: connect fail, try launching new daemon process
I/Magisk ( 249): Magisk v13.0(0980cb6) daemon started
D/Magisk ( 249): sepol: Starting large patch thread
I/Magisk ( 249): ** post-fs mode running
I/Magisk ( 249): ** post-fs-data mode running
D/Magisk ( 249): resetprop: Initializing...
I/Magisk ( 249): * Mounting /data/magisk.img
I/Magisk ( 249): * Running post-fs-data.d scripts
I/Magisk ( 249): post-fs-data.d: exec [su-daemon.sh]
I/Magisk ( 249): * Loading modules
I/Magisk ( 249): custom-module: constructing magic mount structure
I/Magisk ( 249): Fdroid-Priv: loading [system.prop]
D/Magisk ( 249): resetprop: Load prop file [/magisk/Fdroid-Priv/system.prop]
I/Magisk ( 249): Fdroid-Priv: constructing magic mount structure
I/Magisk ( 249): EmojiOne-systemless: constructing magic mount structure
I/Magisk ( 249): Greenify4Magisk: constructing magic mount structure
--------- beginning of system
D/Magisk ( 336): client: connect fail, try launching new daemon process
I/Magisk ( 343): Magisk v13.0(0980cb6) daemon started
D/Magisk ( 343): sepol: Starting large patch thread
I/Magisk ( 343): ** late_start service mode running
D/Magisk ( 343): su: request from client: 11
D/Magisk ( 343): su: request from uid=[10334] (#1)
D/Magisk ( 343): su: collector started
D/Magisk ( 343): su: wait_result waiting for 3433
D/Magisk ( 3433): su: child process started
D/Magisk ( 3433): su: argc=[2]
D/Magisk ( 3433): su: argv[0]=[su]
D/Magisk ( 3433): su: argv[1]=[-v]
D/Magisk ( 3433): su: cwd=[/]
D/Magisk ( 3433): su: pts_slave=[]
D/Magisk ( 343): su: return code to client: 0
D/Magisk ( 343): su: request from client: 12
D/Magisk ( 343): su: request from uid=[10334] (#1)
D/Magisk ( 343): su: wait_result waiting for 3437
D/Magisk ( 3437): su: child process started
D/Magisk ( 3437): su: argc=[1]
D/Magisk ( 3437): su: argv[0]=[su]
D/Magisk ( 3437): su: cwd=[/]
D/Magisk ( 3437): su: pts_slave=[]
D/Magisk ( 343): su: Client killed unexpectedly
D/Magisk ( 343): su: return code to client: 0
D/Magisk ( 343): su: request from client: 11
D/Magisk ( 343): su: request from uid=[10030] (#1)
D/Magisk ( 343): su_db: query policy=[2]
D/Magisk ( 343): su: wait_result waiting for 3676
D/Magisk ( 3676): su: child process started
D/Magisk ( 3676): su: argc=[3]
D/Magisk ( 3676): su: argv[0]=[su]
D/Magisk ( 3676): su: argv[1]=[-c]
D/Magisk ( 3676): su: argv[2]=[/system/bin/sh]
D/Magisk ( 3676): su: cwd=[/]
D/Magisk ( 3676): su: pts_slave=[]
E/Magisk ( 3673): read failed with 25: Not a typewriter
D/Magisk ( 6949): client: connect fail, try launching new daemon process
E/Magisk ( 6949): start daemon failed with 111: Connection refused
D/Magisk ( 6951): client: connect fail, try launching new daemon process
E/Magisk ( 6951): start daemon failed with 111: Connection refused
D/Magisk ( 6960): client: connect fail, try launching new daemon process
E/Magisk ( 6960): start daemon failed with 111: Connection refused
D/Magisk ( 7025): client: connect fail, try launching new daemon process
E/Magisk ( 7025): start daemon failed with 111: Connection refused
D/Magisk ( 7126): client: connect fail, try launching new daemon process
E/Magisk ( 7126): start daemon failed with 111: Connection refused
D/Magisk ( 7210): client: connect fail, try launching new daemon process
E/Magisk ( 7210): start daemon failed with 111: Connection refused
D/Magisk (10872): client: connect fail, try launching new daemon process
E/Magisk (10872): start daemon failed with 111: Connection refused
D/Magisk (10904): client: connect fail, try launching new daemon process
E/Magisk (10904): start daemon failed with 111: Connection refused
D/Magisk (11046): client: connect fail, try launching new daemon process
E/Magisk (11046): start daemon failed with 111: Connection refused
D/Magisk (11097): client: connect fail, try launching new daemon process
E/Magisk (11097): start daemon failed with 111: Connection refused
D/Magisk (12571): client: connect fail, try launching new daemon process
E/Magisk (12571): start daemon failed with 111: Connection refused
D/Magisk (12576): client: connect fail, try launching new daemon process
E/Magisk (12576): start daemon failed with 111: Connection refused