It's been said that the recent re-arrest of an FBI informant on the same charges is "unprecedented", in particular because it was done by going to a different judge than the original magistrate who released him, so a form "judge shopping" for the government's preferred result, if you like.
I've tagged this with double jeopardy, but arrests are--of course--not trials or convictions. So, is what happened in this case undoubtedly legal, at least from this angle? (And also/conversely, is it really "unprecedented"?)
The reason for the first release was that he was not considered a risk to the community and paraphs only a moderate flight risk (his passport was retained). The 2nd judge apparently disagreed on the latter, but the reporting was much less clear on that.