Commit 66c4638
committed
fix(gemini-adapter): handle stdout close events
Addressed the Gemini CLI streaming regression where readline could emit a close event without any lines, leaving iterators waiting forever. Added a close handler that emits cancelled/error metadata for aborted runs and always pushes the DONE sentinel before cleanup detaches the listener, and updated the spawn cleanup helper to remove the new handler safely. Verified via npm run test --workspace examples.1 parent 5d3ec46 commit 66c4638
1 file changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
250 | 266 | | |
251 | 267 | | |
252 | 268 | | |
| |||
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
290 | | - | |
| 306 | + | |
291 | 307 | | |
292 | 308 | | |
293 | 309 | | |
| |||
363 | 379 | | |
364 | 380 | | |
365 | 381 | | |
366 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
367 | 387 | | |
368 | 388 | | |
369 | 389 | | |
370 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
371 | 394 | | |
372 | 395 | | |
373 | 396 | | |
| |||
0 commit comments