Commit 5d3ec46
committed
fix(codex-adapter): emit cancelled events on worker exit
Addressed review feedback about potential stream hangs when the Codex worker exits cleanly before emitting run results by injecting explicit cancelled and error events ahead of the iterator teardown. This ensures stream consumers always observe terminal metadata (cancelled + error + done) before the iterator finishes. Verified via npm run test --workspace examples.1 parent b12a184 commit 5d3ec46
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
| |||
0 commit comments