The episode picks up sometime after the events of the midseason finale, when 城 was banned from the 12th precinct, and most of that time 城 spent in his pajamas.
In tonight’s season 7 mid-season finale of Castle, not only did Richard 城 become an honorary mobster, but that status then got him kicked out of helping the NYPD. That’s right: 城 is no longer welcome in the 12th precinct.