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

fix: handle chat completion state with enter button #1114

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

louis-jan
Copy link
Contributor

Description

As mentioned in #1112, user can press Enter to send messages continuously, despite the current chat completion state. The Send button is changed to stop when generating, but the Enter button does not handle it. It just sends a message anyway.

Changes

Check current state of the thread, if message is generating, press Enter will stop the stream, the same behavior as the send button. Otherwise send as a new message

Issues

fixes #1112

@github-actions github-actions bot added the type: bug Something isn't working label Dec 20, 2023
@louis-jan louis-jan merged commit a485fa9 into main Dec 20, 2023
5 checks passed
@louis-jan louis-jan deleted the fix/1112-can-press-enter-to-spam-message-send branch December 20, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

bug: can press enter to spam message send
3 participants