Files
codex/codex-rs/tui
Eric Traut f12fa0fbc5 Keep the TUI transcript selection cursor visible (#63056)
## 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
2026-11-21 23:25:56 +00:00
..