Files
codex/codex-rs/tui
T
Ashutosh Kumar Singh 7b28b350e1 fix(tui): flush input buffer on init to prevent early exit on Windows (#10729)
Fixes #10661.

### Problem
On Windows, the sign-in menu can exit immediately if the OS-level input
buffer contains trailing characters (like the Enter key from running the
command).

### Solution
**Flush Input Buffer on Init**: Use FlushConsoleInputBuffer on Windows
(and cflush on Unix) in ui::init() to discard any input captured before
the TUI was ready.

Verified by @CodebyAmbrose in #10661.
7b28b350e1 ยท 2026-02-05 00:59:32 -08:00
History
..
2025-09-15 00:42:53 -07:00
2025-08-18 16:02:25 +00:00