mirror of
https://github.com/openai/codex.git
synced 2026-12-04 00:51:02 +00:00
## Why A completed write to the PTY master can reach the slave in fragments. The startup test could run its zero-time poll or input discard before the full sequence arrived. ## What changed Use `FIONREAD` to wait until the full paste boundary and the subsequent action input are each queued on the PTY slave. The wait leaves the bytes unread and reports how many arrived if it times out. GitOrigin-RevId: 077715814c4e11e6dfd42e63238222b0204aff4d