Commit 693c646
committed
fix(sdk): await the in-flight stream edit before the final channel egress
In stream delivery the debounce editor's stop() cleared the pending timer but
returned immediately even with an edit request already in flight. The turn then
issued the authoritative final edit to the same message ref, so a slower
in-flight partial-text edit could land after it and leave truncated text as the
last write. stop() now awaits any in-flight edit (and makeChannelStreamTap's
flush/cancel and the turn finally await stop()), so the final edit is always the
last write.1 parent 093d0cd commit 693c646
2 files changed
Lines changed: 46 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5062 | 5062 | | |
5063 | 5063 | | |
5064 | 5064 | | |
5065 | | - | |
| 5065 | + | |
5066 | 5066 | | |
5067 | 5067 | | |
5068 | 5068 | | |
| |||
5074 | 5074 | | |
5075 | 5075 | | |
5076 | 5076 | | |
5077 | | - | |
| 5077 | + | |
5078 | 5078 | | |
5079 | 5079 | | |
5080 | 5080 | | |
| |||
5084 | 5084 | | |
5085 | 5085 | | |
5086 | 5086 | | |
5087 | | - | |
5088 | | - | |
5089 | | - | |
5090 | | - | |
5091 | | - | |
5092 | | - | |
5093 | | - | |
5094 | | - | |
5095 | | - | |
5096 | | - | |
5097 | | - | |
5098 | | - | |
5099 | | - | |
5100 | | - | |
5101 | | - | |
5102 | | - | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
5103 | 5105 | | |
5104 | 5106 | | |
5105 | 5107 | | |
| |||
5111 | 5113 | | |
5112 | 5114 | | |
5113 | 5115 | | |
5114 | | - | |
| 5116 | + | |
5115 | 5117 | | |
5116 | 5118 | | |
5117 | 5119 | | |
5118 | 5120 | | |
5119 | 5121 | | |
| 5122 | + | |
| 5123 | + | |
| 5124 | + | |
| 5125 | + | |
| 5126 | + | |
5120 | 5127 | | |
5121 | 5128 | | |
5122 | 5129 | | |
5123 | 5130 | | |
5124 | | - | |
| 5131 | + | |
5125 | 5132 | | |
5126 | 5133 | | |
5127 | 5134 | | |
| |||
5132 | 5139 | | |
5133 | 5140 | | |
5134 | 5141 | | |
5135 | | - | |
5136 | | - | |
| 5142 | + | |
| 5143 | + | |
5137 | 5144 | | |
5138 | 5145 | | |
5139 | 5146 | | |
5140 | 5147 | | |
5141 | 5148 | | |
5142 | | - | |
5143 | | - | |
| 5149 | + | |
| 5150 | + | |
5144 | 5151 | | |
5145 | | - | |
5146 | | - | |
| 5152 | + | |
| 5153 | + | |
5147 | 5154 | | |
5148 | 5155 | | |
5149 | 5156 | | |
| |||
7938 | 7945 | | |
7939 | 7946 | | |
7940 | 7947 | | |
7941 | | - | |
| 7948 | + | |
7942 | 7949 | | |
7943 | 7950 | | |
7944 | 7951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| |||
367 | 372 | | |
368 | 373 | | |
369 | 374 | | |
370 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
371 | 381 | | |
372 | 382 | | |
373 | 383 | | |
| |||
0 commit comments