I'd say it's even odds that her stunt was purposeful and that she is far more lucid than her lawyer claims.
I agree. She is most likely setting up a not guilty by reason of insanity defense. But her writing is quite lucid when she shows her contempt for the US. So I am not buying her BS.