The Bangkok Military Court has just ordered the unconditional release of the 14 detained students of the anti-coup New Democracy Movement.
Investigators had wanted to keep the students for another 12 days, saying their interrogation was not finished.
Post Today reports the students said they had no intention of fleeing the charges against them and needed to attend their university classes.
The deliberations took three hours. The defendants were present for the decision. Only some relatives were allowed inside the courtroom, but supporters were outside the building giving moral support.
Post Today says it is now up to the investigators to summarise their findings for military prosecutors to file charges against the students in the military court. The students are demanding any case be tried in a civilian court, however.
Thai PBS reports there was also a small counter-demonstration but police kept them well away from the supporters to avoid any possibility of violence.
The court is now preparing documents to be used to secure the students release later this afternoon.
Here is more from the Bangkok Post.
Although released from detention, the students are still within the judicial process. If military prosecutors decide to arraign them they will stand trial in the military court.
The students were arrested on June 25 on charges of defying an NCPO order issued under Section 44 of the interim constitution prohibiting a political assembly of five people or more, and for violating Section 116 of the Criminal Code.