You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pressing Enter/Shift-Enter sends empty messages when input is empty, despite the "Send" button being disabled.
Reproduce
On v3-dev branch of Jupyter AI, press Enter/Shift-Enter repeatedly while the input is empty.
Screen.Recording.2024-12-09.at.1.49.35.PM.mov
Expected behavior
Enter/Shift-Enter should not send a message when the input is empty.
When Enter/Shift-Enter is pressed:
Determine the message is all whitespace via regex, and if so, clear the input & do nothing else.
Otherwise, send the message.
The send button should be enabled/disabled according to this state. There should not be 2 separate state vars that control whether the send button is enabled & control whether the input should be sent.
The text was updated successfully, but these errors were encountered:
dlqqq
changed the title
Pressing Enter/Shift-Enter sends empty messages when input is empty
Keyboard sends empty messages when input is empty
Dec 9, 2024
Description
Pressing Enter/Shift-Enter sends empty messages when input is empty, despite the "Send" button being disabled.
Reproduce
On
v3-dev
branch of Jupyter AI, press Enter/Shift-Enter repeatedly while the input is empty.Screen.Recording.2024-12-09.at.1.49.35.PM.mov
Expected behavior
The text was updated successfully, but these errors were encountered: