Skip to content

🐛 Scrolling up one page causes scrollbar to jump to top of terminal session #1587

@clubanderson

Description

@clubanderson

Bug Report

cc @pelikhan

Description

Scrolling up by one page length in the Copilot CLI causes the scrollbar to rocket to the very top of the terminal session, rather than scrolling up by the expected page amount. This makes it very difficult to review recent output.

Previously observed this same behavior in Claude CLI, and now seeing it in Copilot CLI as well — likely a shared upstream issue in the TUI/terminal rendering layer.

Steps to Reproduce

  1. Launch Copilot CLI: copilot
  2. Generate enough output to fill several screens (e.g., a long conversation or verbose tool output)
  3. Scroll up by one page (e.g., Page Up or trackpad scroll)
  4. Observe the scrollbar position

Expected Behavior

Scrollbar should move up by approximately one page length, showing the content just above the current viewport.

Actual Behavior

Scrollbar jumps all the way to the top of the terminal session history, skipping past all intermediate content.

Environment

  • OS: macOS (Darwin/ARM64)
  • Copilot CLI version: 0.0.414
  • Terminal: iTerm2
  • Also observed in: Claude CLI (same behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions