Commit 4595a1c
fix(react): close three useChat gaps surfaced by PR #5 review
- send(): sync messagesRef before runStream so rapid synchronous sends
both reach the outgoing request body
- useState init: hydrate pendingDecisions from initialMessages so
rehydrated paused tool calls render decision UI immediately
- unmount: abort the in-flight fetch on cleanup to prevent leaked
streams when the consumer unmounts mid-request
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent cd00eaf commit 4595a1c
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| |||
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
361 | 369 | | |
362 | 370 | | |
363 | 371 | | |
| |||
0 commit comments