I have two cases.
My gf has severe health problems, so at some point during the game she just decides that shes too tired and has to go rest, which is 100% fair, but can be disruptive, my solution would be to nudge her into playing a character that can just vanish out of nowhere for some reason(or something for similar effect), so that is expected in game, idk. I'd, of course, try to have enough players, so that's not an issue. Im accepting tips here.
The second case is a friend of mine, I'll struggle to be respectful here a bit, so if this post ends up being rude, it's not my intention.
Idk exactly how her disability affects her, it's ADHD and maybe more, we've been playing for almost a decade together but I think it got a lot worse and it has started to get to me, and other players. She cannot or will not, at all, at the bare minimum really, try, to understand how to play her character sheet in combat, to the point where we would need to constantly remind her to RAGE, as a barbarian.
She has lots of IRL problems, and I guess I understand just wanting to play the game with your friends in your free time and not wanting to do the work that comes with it, so I was thinking of somehow letting her play classless and just do whatever she wants, just limiting whatever she wants to do to her level and rolls, shes rly not the power gamer type so I think its ok, she also sometimes gets into a mental state where it seems that she is completely pissed off and no one can understand why.
She does therapy just to make it clear. She can be disruptive, I dont think it's intentional, I think I don't want to exclude her, but it's also affecting other players. Oh and also she sometimes just have to leave because her parents are being annoying (no, we are nowhere near being in our teens, its just their dynamic) so I keep thinking that "this character that suddenly vanishes or becomes unreliable, like, starts to sleep" is how I fix that. Idk, im rly open to thoughts.
To be clear, this doesn't have to be about dnd. For instance, a solution for a game like mork borg would be welcomed as well.
And as for talk to your players, type of answer: of course, but I'd like to have a solution to propose when I get to it