Crazy Ex-Girlfriend has been amazing this seasons. I mean it basically turns out the entire show has been a long con and we haven't been watching what we think we were watching.
(If you're curious, summary below, but don't click unless you're never going to watch it.)
ZOMG Spoiler! Click here to view!
Over the last two episodes, Rebecca has humiliated herself publicly over Josh, attempted suicide by taking an overdose, and has now started therapy. Her new doctor says her previous diagnoses of anxiety and depression were wrong and she actually has borderline personality disorder, accompanied by a reading out of the symptoms of BPD interspersed with flashbacks to Rebecca doing all of these things. In a key moment, Rebecca says "it was never about Josh... Josh is irrelevant." So the whole show has changed, in restrospect: it was never any sort of romcom, it was always about this character who through her own self-destructive behaviour was going to hit rock bottom and maybe come out the other side a stronger person. Or maybe not -- it's not sugar coating the seriousness of Rebecca's mental state.
Apparently this has always been the plan for the show. It's been very well handled.