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

Chat Interface does not take same user input more than once #112

Open
bashybaranaba opened this issue Oct 9, 2024 · 0 comments
Open

Chat Interface does not take same user input more than once #112

bashybaranaba opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bashybaranaba
Copy link
Member

Chat Interface does not take the same user input more than once - partly due to the structure of the runtime engine.
Currently every time a variable changes within the runtime engine, the state of the Chat interface component changes so that it can keep track of chat interaction data. However, this results in the component displaying the same messages every time the state changes. To counteract this, currently, we filter out the interaction data that has the same id and the same message value. This works fine until you try to send the same message again - the message will not be shown on the chat interface since it is filtered out as redundant. This is because the id of the message is tied to the input component that provides the chat interface with the message string which does not change unless the input component is different - so if the the same string is more than once from the same input component it'll have the same id and value and the subsequent message string is not shown

@bashybaranaba bashybaranaba added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant