mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
## Why Legacy terminals encode `Alt` plus a character the same way as `Esc` followed by that character. In Vim insert or replace mode, typing a command immediately after `Esc` could therefore leave the composer in the wrong mode. ## What changed Recover ambiguous input as separate `Esc` and character events when Vim mode can consume the escape. Preserve active `Alt` bindings, key chords, image paste, agent navigation, enhanced-key terminals, and AltGr input. ## Testing Add coverage for recovered Vim commands and for each shortcut and terminal case that must retain its existing behavior. GitOrigin-RevId: 3d8464d805f95f677cce5c46ae00338e611d776a