mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
## Why Programs running in a PTY can block while waiting for replies to terminal queries. ## What changed - Intercept device-status, window-size, cursor-position, and DEC private-mode queries from TTY subprocess output and write bounded responses to the subprocess input. - Remove handled queries from the output stream while preserving other escape sequences and output, including queries split across chunks. - Apply the responder to both direct and driver-backed TTY process spawning. ## Testing Added tests for driver-backed query handling and for a PTY subprocess that waits for a cursor-position response before exiting. GitOrigin-RevId: de92e06d183647271ef49024da9c30f01699f886