Commit c698a81
fix(codex): handle stdout/stderr stream errors in CLI session exec resume
The exec resume child process pipes stdout/stderr for data collection
but does not register error handlers on the stdio streams. If a
stream errors (e.g. pipe broken), the Promise never settles because
only process-level errors are caught.
Add child.stdout.on('error', reject) and child.stderr.on('error',
reject) inside the Promise constructor alongside the existing
child.on('error', reject) to catch stream-level errors.
This follows the same pattern as #101505 (mushuiyu886), #101597
(Alix-007), #101401 (cxbAsDev), and #101088 (masatohoshino).
Co-Authored-By: Claude <[email protected]>1 parent 1252a3d commit c698a81
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
299 | 301 | | |
300 | 302 | | |
301 | 303 | | |
| |||
0 commit comments