claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] View intermittently jumps to top of terminal when reviewing code edits while scrolled up

Open Cheffromspace opened this issue 6 months ago • 13 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
  • Claude CLI version: 1.0.6 (Claude Code)
  • Operating System: Windows 11, Ubuntu 22.04
  • Terminal: Windows Terminal
  • Verbose mode: false

Description: When reviewing code changes in Claude Code's edit panel (with accept prompt), if the view is scrolled up from the bottom position, it can automatically jump to the top of the terminal output. This happens without user interaction and appears to be intermittent or delayed.

Steps to Reproduce:

  1. Use Claude Code to generate/edit code
  2. When the edit review panel appears with the accept prompt
  3. Be in a scrolled-up position (not at the very bottom of the output)
  4. Wait/observe - view may jump to top after a delay or refresh

Expected Behavior: The view should remain at the current scroll position while reviewing changes.

Actual Behavior: The view intermittently jumps to the top of terminal output when not positioned at the very bottom. The jump may occur after a delay, suggesting a possible refresh/redraw issue.

Impact: Disrupts reviewing large diffs as users lose their place, particularly problematic for lengthy code reviews.

Cheffromspace avatar Jun 01 '25 18:06 Cheffromspace

Same on Mac with iTerm2 terminal

phpeterson-usf avatar Jun 02 '25 03:06 phpeterson-usf

Same on WezTerm, it's driving me crazy.

weeksie avatar Jun 02 '25 13:06 weeksie

Also been having this issue for the past few days

mmic-irobbins avatar Jun 02 '25 14:06 mmic-irobbins

+1 on Windows / WSL2 Ubuntu 22.04.5 LTS

jayadehart avatar Jun 02 '25 18:06 jayadehart

+1 on GPU 5090

mounan avatar Jun 30 '25 10:06 mounan

Still very much an issue on 1.0.93 using JetBrains Rider on Windows.

rfmsanz-ethan avatar Aug 28 '25 02:08 rfmsanz-ethan

+1

nick-the-dev avatar Nov 16 '25 22:11 nick-the-dev

I get this same think on Apple M4 Pro 26.1 (25B78) - using terminal Termius Version 9.34.4 (9.34.4)

For me it happens when Claude Code asks a question and then I type escape her push the esc button and clarify. Then it will randomly jump up over some time.

cgsmith avatar Nov 26 '25 14:11 cgsmith

+1 on Windows / WSL2 Ubuntu 22.04.5 LTS

ashenmaker avatar Nov 26 '25 16:11 ashenmaker

Here too. OSX using bash

shanytc avatar Nov 27 '25 10:11 shanytc