Commit 2da781a
fix(codex-supervisor): handle stdout/stderr stream errors in JSON-RPC client
The stdio-proxy JSON-RPC connection registers data handlers on
stdout and stderr streams, plus error handlers on stdin and the
process itself, but does not register error handlers on stdout
or stderr. If either stream errors (e.g. pipe broken), the error
is unhandled and the connection may hang.
Add error handlers on proc.stdout and proc.stderr that call
this.fail(error), matching the existing stdin and process-level
error handling.
Co-Authored-By: Claude <[email protected]>1 parent 1252a3d commit 2da781a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
0 commit comments