Commit eaa5966
committed
fix(codex-adapter): distinguish worker failures from cancels
Addressed the review feedback where Codex stream consumers always saw a cancelled event even when the worker crashed. The exit handler now only emits cancelled metadata when an actual abort occurred; other exit paths produce the worker-exit error event so UIs can differentiate real cancellations from infrastructure failures. Verified via npm run test --workspace examples.1 parent 6951561 commit eaa5966
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
392 | 391 | | |
393 | | - | |
394 | 392 | | |
395 | 393 | | |
396 | 394 | | |
397 | 395 | | |
398 | 396 | | |
399 | | - | |
400 | 397 | | |
401 | 398 | | |
402 | 399 | | |
| |||
0 commit comments