Set aside the inherent problems with ai and just observe the parental actions here.
You kid is telling a story to you its parent. You can tell it your to tired/overwhelmed to listen or ask to Finnish it another time.
At what point is it ok to just abruptly replace your presence with someone else.
Imagine if someone did that to you, in the middle of conversation they just leave and tell you to finnish the end of it to someone else who was previously not involved. Its rude for adults but psychologically harmfull to a child still learning what conversation is.
Also, 2 hours alone at 4yo?