mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why An immediate redraw can happen before the TUI receives a resize event. For example, submitting a turn just after shrinking the terminal can render the frame using the previous dimensions. ## What changed Resolve the screen size and run resize handling before immediate paints for turn submission, session lifecycle actions, startup modals, Cloud switching, and shutdown. Consume the reserved size when drawing the frame and preserve the scheduled recheck for settled terminal dimensions. ## Testing Add regression coverage for fullscreen turn submission and archive progress after a terminal shrink, plus checks that a draw consumes its reserved size and an early paint preserves the scheduled size recheck. GitOrigin-RevId: 494c746cb02712350cc600ea4aea64460c608639