Commit 29a6924
committed
fix(sdk): detach the createSession message listener at stream end
A message arriving between a stopped stream and the turn-complete write
(the post-stream usage race) was consumed into the turn's already-dead
steering queue and lost. Detach at stream settle, matching the agent
loop, so those arrivals buffer for the next turn.1 parent c00ed5d commit 29a6924
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9576 | 9576 | | |
9577 | 9577 | | |
9578 | 9578 | | |
| 9579 | + | |
| 9580 | + | |
| 9581 | + | |
| 9582 | + | |
9579 | 9583 | | |
9580 | 9584 | | |
9581 | 9585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
160 | 203 | | |
161 | 204 | | |
162 | 205 | | |
| |||
0 commit comments