cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
3 stars 0 forks source link

Analysis successfully generated but not displayed in analysis component. #149

Open hiyaryan opened 4 months ago

hiyaryan commented 4 months ago

After entering a new thought, the server indicated that the analysis was generated successfully. A title was created indicating that it hit the LLM API.

The thought was then displayed in focus, but the analysis was empty as seen in the image below.

The generate new analysis button was pressed several times and the server indicated again that it was successful but still is not displayed in the analysis component.

image

hiyaryan commented 4 months ago

A new entry was made with the same thought and now the analysis appeared. It seems there is a bug in the new entry mechanism that occurs spontaneously.

Check the database to see if the analysis has been written. If it has, then the controller logic might contain the bug. Otherwise, the bug might be in the component.

image