Commit b2ea01f
committed
fix(openai): always fail on codex Responses-API error events (#87)
Error/failed events without error/message fields were silently ignored,
risking continued processing of a broken stream. Throw unconditionally on
response.error/error/response.failed (with an Unknown error/failure fallback).
Adds a test for the no-details case.1 parent f9cb644 commit b2ea01f
2 files changed
Lines changed: 27 additions & 11 deletions
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
518 | 540 | | |
519 | 541 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
840 | 842 | | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
| 843 | + | |
846 | 844 | | |
847 | 845 | | |
848 | 846 | | |
849 | 847 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
| 848 | + | |
855 | 849 | | |
856 | 850 | | |
857 | 851 | | |
| |||
0 commit comments