Some OnePlus devices have a "bypass charging" system. My OP8 Pro is running since 2y now as a Kubernetes node, and nothing bad has happened to its battery (yet).
I'm honestly curious to see if bypass charging is on, but it's been a while since I touched the device itself and it has been fine do far. YMMV