Commit 074eaae
Preserve message content when chat send fails (#605)
When users try to send a message while disconnected from the chat,
the message was being cleared even though it failed to send. This was
because handleSendMessage returned early without throwing an error,
so the .then() block in MessageInput executed and cleared the input.
Now handleSendMessage throws an error when not connected, which is
caught by MessageInput's error handler, preserving the user's message
in the input box so they don't lose their typed content.
https://claude.ai/code/session_012EqUZa3tCdhg3hHkBQkDdg
Co-authored-by: Claude <noreply@anthropic.com>1 parent 44dd4ea commit 074eaae
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 247 | + | |
252 | 248 | | |
253 | 249 | | |
254 | 250 | | |
| |||
0 commit comments