mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Ghostty can leak release events for shortcuts that the terminal consumes. ## What changed - Detect Ghostty when `TERM` is `xterm-ghostty`, including when `TERM_PROGRAM` is unavailable. - Omit `REPORT_EVENT_TYPES` from keyboard enhancement flags for Ghostty while retaining alternate-key and escape-code disambiguation reporting. ## Testing - Cover Ghostty detection through `TERM` and its keyboard enhancement flags. GitOrigin-RevId: d865a6cdd1373aad4b78099e821d1ebaeb6cfdff