mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## 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