Commit aaa51a3
committed
fix(sdk): fold queued response data parts into the managed error partial
The managed error path now folds data parts queued via chat.response /
writer.write() into the recovered partial before persisting, matching the
success path and the manual loop, so a data part queued just before a
source-stream failure isn't dropped.1 parent b5c37ee commit aaa51a3
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7956 | 7956 | | |
7957 | 7957 | | |
7958 | 7958 | | |
| 7959 | + | |
| 7960 | + | |
| 7961 | + | |
| 7962 | + | |
| 7963 | + | |
| 7964 | + | |
| 7965 | + | |
| 7966 | + | |
| 7967 | + | |
| 7968 | + | |
7959 | 7969 | | |
7960 | 7970 | | |
7961 | 7971 | | |
| |||
7991 | 8001 | | |
7992 | 8002 | | |
7993 | 8003 | | |
7994 | | - | |
| 8004 | + | |
| 8005 | + | |
| 8006 | + | |
7995 | 8007 | | |
7996 | 8008 | | |
7997 | 8009 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
371 | 400 | | |
372 | 401 | | |
373 | 402 | | |
| |||
0 commit comments