mirror of
https://github.com/openai/codex.git
synced 2026-12-06 01:10:58 +00:00
## Why Windows Terminal's `sendInput` mapping delivers `ESC[13;2u` as individual console key events. Decode it as `Shift+Enter` so the mapping inserts a newline in the composer. ## What changed - Wrap the Windows event stream with a decoder for the complete Escape-prefixed sequence, including interleaved key releases. - Use a fixed 50 ms deadline for partial sequences and replay incomplete or mismatched input unchanged. Preserve literal text, paste events, and native key events. - Update the `crossterm` revision and dependency lockfiles. ## Testing Add tests for repeated and fragmented mappings, deadline handling, unchanged input, error and end-of-stream replay, and composer newline rendering with a snapshot. GitOrigin-RevId: 95ab39960510d71322824c63817710633a2fda23