Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliza UI interface agent sends double response to single comment #181

Open
Tracked by #176
mihai169 opened this issue Jan 7, 2025 · 1 comment
Open
Tracked by #176
Assignees
Labels

Comments

@mihai169
Copy link
Collaborator

mihai169 commented Jan 7, 2025

Agent sometimes sends two replies for one user comment - must send one reply to one comment or a continuation of 
first reply not two separate replies to same comment.

Image

Acceptance Criteria:
Single Reply Per User Comment:

The system should ensure that for each user comment, the agent sends only one reply.
If the agent’s response requires multiple parts, the agent should send a continuation or a single message, not separate, independent replies.
There should be no duplicate replies to the same user comment.
Continuations (if applicable):

If the agent needs to send multiple parts as a response (e.g., for long or complex messages), the agent should send a continuation reply (e.g., "Continued...") within a single thread or response, rather than sending separate messages.
Bug-Free Behavior:

The system must handle edge cases where duplicate replies could be sent, ensuring that only one reply is sent per comment.
Error Handling:

The system should detect and prevent any accidental or unintended duplicate replies from being triggered.

Gherkin-Style Test Case:

Feature: Preventing Duplicate Replies to User Comments

As a user,
I want the agent to reply only once to my comment,
So that I don't receive multiple separate replies to the same message.

Scenario: Agent sends only one reply per comment
Given a user has submitted a comment to the agent
When the agent processes the comment
Then the agent should send only one reply to that comment
And no duplicate replies should be sent for the same comment

Scenario: Agent sends continuation of first reply (if needed)
Given the agent has started to reply to a user comment
When the reply requires multiple parts
Then the agent should send the reply as a continuation of the first message
And not send two separate replies

Scenario: Agent should not send duplicate replies
Given a user has submitted a comment and the agent has already replied
When the user comment is processed again
Then the system should not send a second reply to the same comment
And only one reply should be sent for that comment

Scenario: Preventing accidental multiple replies
Given the user submits a comment and the agent replies
When an unexpected system error or bug causes the agent to send a second reply
Then the system should detect and prevent the second reply from being sent
And the user should only receive one response to their comment

Scenario: Agent sends correct response to long comment
Given the agent is replying to a long or complex user comment
When the reply is too long for a single message
Then the agent should send a continuation message (e.g., "Continued...") within the same response thread
And the reply should not be split into multiple independent replies

@snobbee
Copy link
Collaborator

snobbee commented Jan 17, 2025

@mihai169 that issue was solved in the new Eliza UI using the event.preventDefault() function I saw it in one of the PR that was pushed to the upstream repo and also tested it in my tests you can find a demo here #212 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants