[Google Pixel 8 Pro] badabing2003:
Your device did not automatically change slots, you initiatiate switch slot, several times to be precise

2024-04-04 02:41:52 User initiated Switch Slot
2024-04-04 02:47:20 User initiated Switch Slot
2024-04-04 03:06:57 User initiated Switch Slot
2024-04-04 03:36:03 User initiated Switch Slot

Your phone is rooted.

On both slots.

Selected Device on 2024-04-04 03:34:48:
Device ID: REDACTED
Device Model: husky
Device Active Slot: b
Device Mode: adb
Device Name: Pixel 8 Pro
Device First API Level: 34
Device Version End Date: October 2026
Device Secuity Update End Date: October 2030
Has init_boot partition: True
Device Bootloader Version: ripcurrent-14.4-11403750
Device is Rooted: True
Device Build: AP1A.240405.002
Device API Level: 34
Android Version: 14
Android Name: Android 14
Android Codename: Upside Down Cake
Android Release Date: Q3 2023
Android Latest Update: Present
Device Architecture: arm64-v8a
Device Kernel: Linux localhost 5.15.131-android14-11-gd99d9fe08e0c-ab11209359 #1 SMP PREEMPT Tue Dec 12 17:18:56 UTC 2023 aarch64 Toybox
Device Kernel Version: 5.15
Device KMI: 5.15.131-android14
sys_oem_unlock_allowed:
ro.boot.flash.locked: 0
ro.boot.vbmeta.device_state: unlocked
ro.product.first_api_level: 34
ro.boot.veritymode: enforcing
ro.boot.verifiedbootstate: orange
ro.secure: 1
ro.zygote: zygote64
ro.vendor.product.cpu.abilist: arm64-v8a
ro.vendor.product.cpu.abilist32:
vbmeta type: ab
Slot A Verity: Enabled
Slot A Verification: Enabled
Slot B Verity: Enabled
Slot B Verification: Enabled
Magisk Manager Version: :
Checked for Package: com.topjohnwu.magisk
Magisk Version: 27.0:27000
Magisk Config SHA1: 74f7ca46b5e2084c4925b6ebe8c6b52f96422a70
Magisk Modules:
Iconify enabled 6.7.0
Pixel Xpert enabled canary-341 [Update Available]
Google Photos Features & Unlimited backup enabled 2.0
Anti bootloop enabled v1.2
Call Recorder - SKVALEX enabled 2.3.0 (3.6.6)
Systemless Hosts enabled 1.0
AudioHQ - Advanced Audio Controller enabled Rev 0.91
playcurl enabled v10.2
Play Integrity Fix enabled v15.9.6 [Update Available]
Zygisk - LSPosed enabled v1.9.2 (7024)
Shamiko enabled v1.0.1 (300)

Selected Device on 2024-04-04 03:39:23:
Device ID: REDACTED
Device Model: husky
Device Active Slot: a
Device Mode: adb
Device Name: Pixel 8 Pro
Device First API Level: 34
Device Version End Date: October 2026
Device Secuity Update End Date: October 2030
Has init_boot partition: True
Device Bootloader Version: ripcurrent-14.4-11403750
Device is Rooted: True
Device Build: AP1A.240405.002
Device API Level: 34
Android Version: 14
Android Name: Android 14
Android Codename: Upside Down Cake
Android Release Date: Q3 2023
Android Latest Update: Present
Device Architecture: arm64-v8a
Device Kernel: Linux localhost 5.15.131-android14-11-gd99d9fe08e0c-ab11209359 #1 SMP PREEMPT Tue Dec 12 17:18:56 UTC 2023 aarch64 Toybox
Device Kernel Version: 5.15
Device KMI: 5.15.131-android14
sys_oem_unlock_allowed:
ro.boot.flash.locked: 0
ro.boot.vbmeta.device_state: unlocked
ro.product.first_api_level: 34
ro.boot.veritymode: enforcing
ro.boot.verifiedbootstate: orange
ro.secure: 1
ro.zygote: zygote64
ro.vendor.product.cpu.abilist: arm64-v8a
ro.vendor.product.cpu.abilist32:
vbmeta type: ab
Slot A Verity: Enabled
Slot A Verification: Enabled
Slot B Verity: Enabled
Slot B Verification: Enabled
Magisk Manager Version: :
Checked for Package: com.topjohnwu.magisk
Magisk Version: 27.0:27000
Magisk Config SHA1: 74f7ca46b5e2084c4925b6ebe8c6b52f96422a70
Magisk Modules:
Iconify enabled 6.7.0
Pixel Xpert enabled canary-341 [Update Available]
Google Photos Features & Unlimited backup enabled 2.0
Anti bootloop enabled v1.2
Call Recorder - SKVALEX enabled 2.3.0 (3.6.6)
Systemless Hosts enabled 1.0
AudioHQ - Advanced Audio Controller enabled Rev 0.91
playcurl enabled v10.2
Play Integrity Fix enabled v15.9.6 [Update Available]
Zygisk - LSPosed enabled v1.9.2 (7024)
Shamiko enabled v1.0.1 (300)

Please read up the excellent guides written by recognized moderators and contributors of this forum (available from the Help menu) and faimiliarize yourself the modding process.

Stop flashing, switching slots, running SOS ...

Your phone is perfectly fine.

If Magisk is not showing rooted, but PF shows you're rooted, your problem is because you have multiple Magisk installed (perhaps you have a hidden one and a non-hidden one)

This is a known Magisk issue, it doesn't like multiple instances.