Files
codex/codex-rs/tui/tests/suite
Eric Traut 1476a08f1b Prevent TUI startup hangs when a launcher restores blocking input (#63089)
## Why

A launcher that shares stdin with Codex can clear `O_NONBLOCK` on the
terminal probe's duplicated descriptor. After reading a partial reply,
the probe can then block waiting for more input past its deadline.

## What changed

Poll for readable input with a zero timeout before every probe read.
When no bytes are ready, return to the probe's deadline-aware wait.

## Testing

Add a pseudoterminal regression test that clears `O_NONBLOCK`, answers
only the cursor position query, and checks that the startup screen
appears without another keystroke.

GitOrigin-RevId: 7b6e11db6ac3634f77147ab1251f5321be4355cb
2026-11-22 07:02:39 +00:00
..