mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why Moving the selection cursor below the viewport could jump the transcript so the cursor landed at the top. Resizing the viewport could also leave the cursor offscreen. ## What changed Scroll just enough to reveal the cursor, accounting for the row occupied by a pinned prompt header. Recheck visibility when the viewport changes size or text rewraps. When rendering an inactive pane, preserve its saved scroll position and recheck cursor visibility when it becomes active again. ## Testing Extend transcript tests to cover scrolling past the bottom edge, shrinking and narrowing the viewport, reactivating a pane, and moving the cursor around a pinned prompt header. GitOrigin-RevId: 8772a79316fb31e758986d1f71a0d776fc5ff2b5