mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why A terminal can report a focus gain between mouse-down and mouse-up. Clearing the pending sidebar press on that event causes the release to be ignored, so clicking the tab chooser's close button can fail to open the confirmation dialog. ## What changed Keep the pending sidebar press on `TuiEvent::FocusGained` so the mouse release can complete the click. ## Testing Extend the tab chooser test to send a focus gain between the press and release and check that the close confirmation dialog appears. GitOrigin-RevId: 4173292c50383304e9ef62104251434be7580789