Problem
The application currently allows users to send empty or whitespace-only messages.
This can create unnecessary API calls and reduce chat quality.
Expected Behavior
- Empty messages should not be submitted
- Send button should remain disabled for blank input
- Show optional validation feedback
Suggested Fix
- Trim input before submission
- Add frontend validation check
- Disable send action if input is empty
Benefits
- Cleaner chat experience
- Reduced unnecessary requests
- Better input validation
Problem
The application currently allows users to send empty or whitespace-only messages.
This can create unnecessary API calls and reduce chat quality.
Expected Behavior
Suggested Fix
Benefits