mirror of
https://github.com/openai/codex.git
synced 2026-08-29 14:09:35 +00:00
## Why Refreshing the terminal palette on a focus event can block the input loop and discard keystrokes entered while focus is returning. ## What changed - Keep the palette cached by the startup probe when handling `FocusGained`. - Continue updating focus state and requesting a redraw without issuing new foreground or background color queries. ## Testing - Verify a queued key is delivered after `FocusGained`. - Exercise focus regain in a pseudo-terminal with immediate and delayed input, and verify it emits no additional palette queries. GitOrigin-RevId: 16e26f81c1343d01f6d0baeff3f204bcc91dd6f3