Reject empty/whitespace chat messages before send #52

Merged
westfarn merged 1 commits from fix/51-empty-message-ws-guard into master 2026-07-28 05:12:39 -07:00
Owner

Summary

Test plan

  • WebSocketContext.test.js empty/whitespace send cases
  • Manually confirm whitespace-only input cannot submit on desktop + mobile viewport
  • Confirm normal messages still send

Related BE: ai_ml_operations/chat_backend#31

## Summary - Closes #51 - Trim prompt Yup validation; refuse empty/whitespace in submit handlers and `sendMessage` - Add WebSocketContext test for empty send rejection ## Test plan - [x] `WebSocketContext.test.js` empty/whitespace send cases - [ ] Manually confirm whitespace-only input cannot submit on desktop + mobile viewport - [ ] Confirm normal messages still send Related BE: https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/31
westfarn added 1 commit 2026-07-28 05:07:51 -07:00
Reject empty/whitespace chat messages before send.
Unit Tests / test (pull_request) Successful in 12s
b79f2b463e
Closes #51. Trim prompt validation and block sendMessage on blank text so idle/mobile tabs cannot submit empty payloads.
westfarn merged commit 799d3d591f into master 2026-07-28 05:12:39 -07:00
westfarn deleted branch fix/51-empty-message-ws-guard 2026-07-28 05:12:39 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#52