Files
codex/codex-rs/core/tests/suite
T
Eric Traut 73ed30d7e5 Avoid hang when tool's process spawns grandchild that shares stderr/stdout (#6575)
We've received many reports of codex hanging when calling certain tools.
[Here](https://github.com/openai/codex/issues/3204) is one example. This
is likely a major cause. The problem occurs when
`consume_truncated_output` waits for `stdout` and `stderr` to be closed
once the child process terminates. This normally works fine, but it
doesn't handle the case where the child has spawned grandchild processes
that inherits `stdout` and `stderr`.

The fix was originally written by @md-oai in [this
PR](https://github.com/openai/codex/pull/1852), which has gone stale.
I've copied the original fix (which looks sound to me) and added an
integration test to prevent future regressions.
73ed30d7e5 ยท 2025-11-12 20:08:12 -08:00
History
..
2025-10-28 14:08:52 +00:00
2025-11-13 01:40:52 +00:00
2025-10-29 22:33:57 +00:00
2025-11-12 16:35:34 +00:00
2025-10-31 14:46:24 +00:00