Ooh, TNG is actually the source of one of my favorite TV writing stories I've ever heard. According to what I've read, "The Best of Both Worlds, Pt 1" was written with absolutely no idea how to resolve the cliffhanger. The writer put no though into it whatsoever, believing resolving the story would be somebody else's problem the next season. But then ended up writing Pt 2, and so had to figure a way out of his own quagmire.
Well A number of things about Best of Both Worlds that was interesting:
- When it was originally pitched and Gene Roddenberry was in control of the story approval; he said 'no' to it - because in the 24th century no officer like Shelby would exist: and there was too much conflict between the main characters.
- The majority of the writing staff on the show who's contracts were up were very fed up with the production environment and weren't planning on coming back for season 4.
- When Gene Roddenberry went to the hospital; and was no longer in approval control, All the writers decided to go ahead with The Best of Both Worlds.
- Rick Berman was firmly in charge though and he gave an edict that he wanted his sonic wallpaper music style. The composer for the episode was really upset by this because he had come up with a number of themes, but Berman said no. What happened with that is said composer decided to do what he wanted to do; with the thought he wasn't interested in doing anything further with Star Trek in the future, so the worst Berman could do to him would be fire him and never bring him back for another episode. He was fine with that and that's how we got a number of the themes that exist in Best of Both Worlds.
- In the end the writers did come up with a scenario that they had no clue how to resolve; but they all loved the ending with Riker saying; "Mr. Worf, fire..." - and yes they figured whomever Rick Berman got to replace them, going forward past that episode ending wasn't going to be their problem.
- But like you said, The joke ended up being on them because I guess certain concessions were given going forward in their new contract offers, so most of them did decide to come back for the 4th season; and they were the ones who had to write themselves out of the situation they put themselves in.