Since you are in Ohio, you are not familiar with psychiatric/psychological testimony in California. While a provider may be supportive of their client/patient, they are not going to actually sit by their side in court or testify in person except for in rare instances, instead, they will respond either in writen reports or in depositions outside of the client/patient's presence so they can answer honestly the clinical questions without harming the client/patient relationship. This is very expensive and not likely going to be an issue in a petty theft case. At most the doctor may provide a brief written report, the PD office might obtain an independent evaluation of limited scope. The patient/client may not even have access to the record of psychological testimony or records in the same manner as other medical records.
Providers can only answer the questions put to them and the PD is not going to open up a can of worms. Most likely they will try to negotiate some sort of diversion program which may include community service, therapy, group therapy, restitution and/or civil recovery, they may have supervised or unsupervised probation, most likely this will involve a few brief peroidic court appearances. You are correct, it is possible we may never hear again from OP.
I would be surprised if OP was on their meds when writing their volumes of posts here expecially given their lack of focus, if they are on their meds, then they are not effectively managing the bipolar aspects of their disorder. Typically, the military, especially the Army doesn't give a medical discharge for bipolar/depression, even for personality disorders, except for borderline PD and possibly Asperger's, both of which OP claimed not to have, these discharges are General under honorable conditions, slightly different than an honorable discharge. While OP may have functioned at a high level for a number of years, the fact that their functioning has declined with age suggests something in addition to bipolar Dx, thus the referal for further evaluation is appropriate. Despite all this, bipolar is not an affirmative defense, it can be a mitigating factor in their defense. Here are some examples.