Skip to content

Message from user is never processed #41

@chandyego84

Description

@chandyego84

getNewMessageLine function blocks the user message from being processed and sent to the AI model

if (
messageLine.previousSibling &&
messageLine.previousSibling.textContent === "You sent"
)

But the message line being retrieved is used to send to the AI model:

const receivedMessage = messageLine.childNodes[1]?.textContent;
if (receivedMessage && typeof receivedMessage === "string") {
handleNewTextMessage(receivedMessage);
}

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions