Imagine that someone is being charged with shoplifting and literally at trial. Some other law enforcement agency shows up to the trial and wants to arrest them for jaywalking.
It seems dysfunctional that the court would release them when they know a different law enforcement agency is literally in the building and wanting to arrest them.
Is this how it works when the FBI comes to a county court looking for someone the county cops have in custody?