I saw something like this at IAD a few weeks ago.
UA1064 MEX-EWR had diverted to IAD, but it appeared that all pax had cleared immigration at IAD, as the continuation flight was leaving from a domestic gate (D19).
Here's what D19 looked like, and my first clue that was something was up was that the status read "Diversion Stop", which I hadn't seen before.