partial trapping against a sleeping opponent is inaccurately implemented
on cart if you are asleep and press the fight button, it will always lock in, as you are not able to select a move while asleep. so on cart if you are being wrapped while asleep, you cannot press the fight button to know if wrap is still ongoing or not, as you will be locked into attempting to wake up regardless of if wrap is ongoing or not as your move selection does not pop up in this case.
on showdown you can press the try fight button while your pokemon is asleep to see if wrap is ongoing.
(and this cant happen on cart since you always lock in burning sleep turns if you press fight, you will never have your moves pop up to know wrap ended)
(to be clear the issue on only on the sleeping pokemon's side, the wrap user's side is accurate)
edit2: all that would be required to fix this is disable the button if your current Pokemon is asleep.
edit3: this also applies to being frozen