Article 706-130 of the French Code of Criminal Procedure
When the assize court returns to the courtroom pursuant to Article 366, the president shall pronounce a judgment declaring the person not criminally responsible on account of mental disorder. This ruling puts an end to pre-trial detention or judicial supervision.