Skip to content

Transcript selection mode jumps a full viewport when moving down past the bottom with j #62710

Open

Description

@co0l1ce

In the transcript selection/viewing mode opened with Ctrl+X followed by [, vertical cursor movement behaves asymmetrically.

Steps to reproduce

  1. Open a conversation containing more than one screen of output.
  2. Press Ctrl+X, then [ to enter transcript selection/viewing mode.
  3. Move upward with k past the top of the viewport.
  4. Move downward with j past the bottom of the viewport.

Actual behavior

Moving upward with k scrolls the viewport one row at a time. Moving downward with j past the last visible row jumps to the next screen, placing the cursor row at the top.

Expected behavior

Both directions should scroll by the minimum number of rows needed to keep the cursor visible. A single j at the bottom should scroll down one row, keeping the cursor at the bottom.

Key bindings already use the defaults

  • Pager / Scroll Up = up, k
  • Pager / Scroll Down = down, j

Environment

The reporter installed the latest Codex CLI on November 20, 2026. The exact installed version has not been independently verified.

Source analysis (static inspection, without runtime reproduction)

The rust-v0.170.0 source maps k/j directly to CursorMotion::Rows(-1)/Rows(1) in transcript_view/select_mode.rs. In reveal_select_cursor(), when the cursor is outside the visible rows, the code sets:

self.position = Position::Reading(Anchor { index, ..cursor });

TranscriptView::start() uses this anchor as the viewport starting row. This appears to explain the asymmetry: moving one row above the top shifts the viewport up one row, while moving one row below the bottom makes that row the new viewport start, causing a screen-sized jump.

Source references

https://github.com/openai/codex/blob/rust-v0.170.0/codex-rs/tui/src/transcript_view/select_mode.rs#L248

https://github.com/openai/codex/blob/rust-v0.170.0/codex-rs/tui/src/transcript_view/select_mode.rs#L356

https://github.com/openai/codex/blob/rust-v0.170.0/codex-rs/tui/src/transcript_view.rs#L663

Suggested direction

Preserve the current viewport when the cursor remains visible. When it moves below the viewport, move the viewport start only enough to reveal the cursor at the bottom. Apply the corresponding minimum adjustment when it moves above the viewport.

Activity

  1. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions