Message from user is never processed
getNewMessageLine function blocks the user message from being processed and sent to the AI model
https://github.com/dcrebbin/meta-glasses-api/blob/c02ce8e5511d066ab6663fa1d7ef90a1b6b166ea/src/app/content/conversion-screen-view.tsx#L87-L90
But the message line being retrieved is used to send to the AI model: https://github.com/dcrebbin/meta-glasses-api/blob/c02ce8e5511d066ab6663fa1d7ef90a1b6b166ea/src/app/content/conversion-screen-view.tsx#L192-L195
This means the AI model will never receive the message and send a response. This is confirmed when debugging myself, as the user's message line is never retrieved. I feel like I am missing something here...
Update: Yup, it's my misunderstanding. This is because the response comes from the alternative account. I was having issues creating another Facebook account (Meta can be strict about potential bot policies), so I am thinking it might be a good idea to just consider adding a "program response tag" in the message whenever the program/AI sends a message in chat.