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

[BUG] rendering glitching on refreshing - suspected TMUX or multiple rapid resolution changes and Claude Code TUI rendering not updating resolution properly

Open gwpl opened this issue 7 months ago • 1 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
  • Claude CLI version: 1.0.6 (Claude Code)
  • Operating System: Linux (ArchLinux, Ubuntu, NixOS)
  • Terminal: variety of terminals... all thought TMUX multiplexer

Bug Description

  • When cluade printing/changing output sometimes (issue is flaky) it's "glitching" like whole long pager rolling up and down...

Suspected is that , as I reattach tmux client between different terminals of different sizes, I resize tmux panels etc... that maybe sometimes I hit "wrong moment" and part of claude rendering logic is not updated about new smaller terminal size, while other parts of claude rednering logic is updated... as it is using dependencies, it maybe down TUI rendering stack....

Recommended action:

enforce updating terminal size on regular basis when rendering in claude code itself and push down to dependencies to do the same...

Steps to Reproduce

Flaky, suspected that changing terminal size in wrong moment may be not noticed by claude scrwing it's terminal refershing ?

Expected Behavior

rendering working flawlessly regardless how often I change terminal size (which maybe rapid if tmux client is attached in multiple windows/computers, and depending which I touch, it becomes "tmux active" and tmux will rapidly resize to one I am on....)

Additional Context

Already provided in ticket earlier: rapid terminal resigin, multiple tmux clients attached to terminal running claude code.

gwpl avatar Jun 02 '25 08:06 gwpl

similar situation. i have tmux and a horizontal split (i.e. top half and bottom half), and i use claude-code in top half. when i work with claude-code, i zoom the top-half to become full screen, but when i un-zoom it, to perform some cli operations in the bottom half, the top half i.e. claude-code area zooms as if it's scrolling full length. the more i work with claude-code, the more lines that top-half session has, and the more scrolling this does. i have m4 max mac, and this sometimes takes upwards of 5+ seconds

rushiagr avatar Jun 07 '25 08:06 rushiagr

i have same problem in gnu screen.

legokichi avatar Jul 09 '25 08:07 legokichi

Same. M1 Macbook Pro, Tmux. Often the issue goes away for me after a few seconds, but sometimes it can last longer. This might be just because it needs to wait for Claude Code to finish, it's hard for me to tell. But it's definitely confusing and a significant pain.

OAGr avatar Jul 20 '25 23:07 OAGr

Same here on Intel MBP, Fish, ghostty, tmux. Zooming into a glitching pane sometimes fixes it but the behavior returns when zooming back out.

mandofever78 avatar Jul 25 '25 19:07 mandofever78

Trying to figure out what's the point of these reports if they're just going to close them and not mention if they're even working on a potential fix.

TheSmilez avatar Aug 01 '25 22:08 TheSmilez

ping so bot won't close it, as it still happens

gwpl avatar Aug 03 '25 20:08 gwpl

still happens

diggerdu avatar Aug 29 '25 04:08 diggerdu

Found a ugly workaround: claude code in zellij do not have this issue. So I run claude code inside zellij inside tmux.

diggerdu avatar Aug 29 '25 12:08 diggerdu

same

lrosasarias05 avatar Sep 03 '25 13:09 lrosasarias05

I am experiencing this issue in VS Code with Claude Code running in a terminal.

nothans avatar Oct 02 '25 18:10 nothans

I use tmux vertical panes in combination with zoom. Sometimes I run 5 of them and each of them, when not zoomed, get just a small width space. For me it's ok, because I can toggle zoom pretty quickly. But if claude code is running in a collapsed pane, when I zoom in that pane, the text lines dont expand together with the pane size. Examples in the images:

Image Image

armoucar avatar Oct 20 '25 00:10 armoucar

Just installed claude and ran into this. Only happens on the extended monitor setup and on the main screen.

sp98 avatar Nov 14 '25 05:11 sp98