Files
codex/codex-rs/core/src
Skylar GraikaandSkylar Graika 9008a0eff9 core: prevent shell_snapshot from inheriting stdin (#9735)
Fixes #9559.

When `shell_snapshot` runs, it may execute user startup files (e.g.
`.bashrc`). If those files read from stdin (or if stdin is an
interactive TTY under job control), the snapshot subprocess can block or
receive `SIGTTIN` (as reported over SSH).

This change explicitly sets `stdin` to `Stdio::null()` for the snapshot
subprocess, so it can't read from the terminal.

Regression test added that would hang/timeout without this change.
Tests: `ulimit -n 4096 && cargo test -p codex-core`.

cc @dongdongbh @etraut-openai

---------

Co-authored-by: Skylar Graika <sgraika127@gmail.com>
2026-01-30 13:47:10 -08:00
..
2026-01-27 11:04:23 -08:00
2026-01-30 10:40:09 +00:00
2026-01-28 15:29:14 +01:00
2025-11-28 11:34:57 +00:00
2026-01-27 11:04:23 -08:00
2026-01-19 11:35:34 +00:00
2026-01-30 10:40:09 +00:00