(a) If criminal charges against a defendant found incompetent to stand trial have not been dismissed, the trial court at any time may determine whether the defendant has been restored to competency.
(b) An inquiry into restoration of competency under this subchapter may be made at the request of the head of the mental health facility, outpatient treatment provider, or residential care facility to which the defendant has been committed, the defendant, the attorney representing the defendant, or the attorney representing the state, or may be made on the court's own motion.