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

[BUG] Claude Code Terminal Refreshes / Sends me to the top of terminal session every 15 seconds

Open jean-moorman opened this issue 8 months ago • 26 comments

Environment

  • Platform (select one):
    • Claude Max
  • Claude CLI version: 1.0.6 Claude Code
  • Operating System: Ubuntu 22.04
  • Terminal: WSL

Bug Description

The terminal display returns to the top of the claude code terminal history about every 15 seconds, even when I am currently looking / working on things actively at the bottom of the terminal history / session

Steps to Reproduce

  1. Use claude code
  2. Watch it bug out

Expected Behavior

I expected to not be returned to the top of the terminal history every 15 seconds

Actual Behavior

I am returned to the top of the claude code terminal history every 15 seconds

Additional Context

Might have something to do with my switching tabs as I notice it happens less when I stay working with claude code continously

jean-moorman avatar May 30 '25 03:05 jean-moorman

Same here, WSL1 ubuntu 22 and windows terminal, very annoying. Only seems to happen when I'm partially scrolled and looking at diffs. Just started today.

muchcharles avatar May 30 '25 03:05 muchcharles

Not WSL, but sometimes when the "refresh spam" happens to me, I can hit "ctrl+r" or even just the up-arrow, and then it stops. I can hit ctrl+r to exit the freeze-frame or hit "down" again as needed at that point.

chad-fossa avatar May 30 '25 10:05 chad-fossa

Same see #826

raveinid avatar May 30 '25 23:05 raveinid

Same. Ubuntu 24.04.2 on WSL

rrebelo62 avatar May 31 '25 01:05 rrebelo62

Same here on Ubuntu 22.04 WSL2

empz avatar May 31 '25 08:05 empz

also got the issue on macos 15.5 (24F74) in iterm2 or ghostty

raidoh avatar May 31 '25 15:05 raidoh

Mative ubuntu 22 and get this issue.

smythp avatar Jun 02 '25 15:06 smythp

This is a really severe issue guys, it isn't the same problem as when it would rescroll the history and get slower and slower, it makes it so you can't read diffs. Anyone found a workaround (like running it inside tmux or something)?

Also, Claude code constantly flickers when it is updating progress etc, but that has been an issue longer.

muchcharles avatar Jun 02 '25 21:06 muchcharles

Fix needed! Seeing this on macOS 14.7 + Ghostty.

Resets my scroll position in the buffer, most annoying. Sometimes whole screen flickers (swaps content rapidly) for several seconds before it calms down, usually after long MCP responses (> 1 screen height).

serpent213 avatar Jun 03 '25 10:06 serpent213

This is a really severe issue guys, it isn't the same problem as when it would rescroll the history and get slower and slower, it makes it so you can't read diffs. Anyone found a workaround (like running it inside tmux or something)?

Also, Claude code constantly flickers when it is updating progress etc, but that has been an issue longer.

I've been running Claude Code in tmux because of this. The copy mode is essentially a "paused" view of the scrollback buffer, so the issue of jumping while trying to read diffs doesn't happen there. (mentioned here already: https://github.com/anthropics/claude-code/issues/826#issuecomment-2928038872)

Apparently this might be fixed by the recent update? Also mentioned in the other issue.

strayer avatar Jun 03 '25 14:06 strayer

Apparently, upgrading from 1.0.4 to 1.0.9 restored the former behaviour for me and made it usable again (occasional flicker).

serpent213 avatar Jun 04 '25 10:06 serpent213

Same here with tmux/kitty - already reported a while back at https://github.com/anthropics/claude-code/issues/947 - this should be super high priority as it directly impacts the usability of the tool especially now that it's no longer in Research Preview beta mode as before!

marwan-tanager avatar Jun 04 '25 13:06 marwan-tanager

Massive problem and makes the cpu run hot

TradeWithCash2025 avatar Jun 19 '25 16:06 TradeWithCash2025

I haven't seen this happen lately fwiw. However, the terminal still flickers like crazy in the lower half while claude is working on stuff, so it seems it isn't handling terminal rewrites correctly. A huge block of text flickers even though only the spinner and token count is updating.

muchcharles avatar Jun 19 '25 17:06 muchcharles

The scrollback issue still happens sometimes but not as bad as before

jean-moorman avatar Jun 19 '25 18:06 jean-moorman

I have this issue too, on macOS/Kitty.

wjakob avatar Jun 25 '25 05:06 wjakob

same here

beshoy23 avatar Jul 09 '25 11:07 beshoy23

Same here Ubuntu 22

Teewhydot avatar Jul 11 '25 19:07 Teewhydot

Same on Debian WSL2

ladderschool avatar Jul 21 '25 06:07 ladderschool

Happens on windows as well still

dennislbc avatar Jul 26 '25 21:07 dennislbc

same here

Victoraubague avatar Aug 02 '25 17:08 Victoraubague

happening to me in real ubuntu (popos) , not even WSL

nklsnkr avatar Aug 18 '25 22:08 nklsnkr

Happens way too often. Having the display bug out every time I type a letter or move the cursor makes it unusable.

Powershell, Win10-64, v2.0.22

ThoughtPhotography avatar Oct 20 '25 07:10 ThoughtPhotography