mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
d59000e5d7
CodeRabbit flagged that the form onSubmit added to headless-chat could submit empty/whitespace messages. The handler now returns early on blank input and the submit button is disabled when the message is empty. Applied to the claude-sdk starters (where the form lives); headless-chat.tsx is already declared allowedDivergence for these instances, so parity stays green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>