forked from chatboxai/chatbox
-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Users can currently send messages containing only whitespace characters (spaces, tabs, newlines), which creates empty-looking messages in the chat.
Current Behavior
- Messages with only whitespace are accepted
- Empty-looking messages appear in chat history
- Wastes space and degrades chat experience
Expected Behavior
Input should be trimmed before validation, preventing submission of whitespace-only messages.
Steps to Reproduce
- Open chat input
- Type multiple spaces or press spacebar/tab repeatedly
- Press send
- Empty message appears in chat
Proposed Solution
Trim input message using .trim() before checking if it's empty.
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working