mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why An editor's suspend/resume cycle can change terminal settings while crossterm still considers raw mode enabled, preventing Codex from restoring raw mode on return. ## What changed On Unix, clear crossterm's raw-mode cache before reapplying TUI terminal modes after an external program exits. ## Testing Extend the external-editor PTY test to simulate an editor restoring canonical mode with `stty sane` and verify that canonical input and echo are disabled after returning to Codex. GitOrigin-RevId: 4ae151deaf073bddf5a1c7fdfb5a1b5f4a480375