mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
A key release can arrive after Codex has begun shutting down, leaving enhanced-key CSI-u bytes queued for the parent shell. Reuse the existing platform-specific input-buffer flush after terminal restoration so those stale events are discarded before control returns to the shell.