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

[BUG] Endless scrolling after large test output

Open Cheffromspace opened this issue 8 months ago • 8 comments

  1. System Environment:
    • Running in WSL2 on Windows (Ubuntu 22.04.5 LTS)
    • Linux kernel 5.15.133.1-microsoft-standard-WSL2
    • Using zsh shell with TERM=xterm-256color
    • Claude version: 0.2.74 (Claude Code)
  2. Project Environment: - Node.js v20.15.1 - PNPM v9.14.4 (package manager) - Large project with many dependencies - Using Jest v29.7.0 for testing
  3. Events Leading to Issue: - We were running Jest tests with a command like: pnpm test "src/commands/slashCommand.test.ts" - The test was failing and producing extremely large error output - Specifically, the test was logging a full API response from a pollution API that was being truncated at 28,000+ characters
  4. Notable Observations: - The test file (slashConnamd.test.ts) has 307 lines - The npm/pnpm dependency tree shows some conflicts/issues with Jest dependencies - There's plenty of system resources available (memory: 96GB with ~90GB free) - The WSL filesystem is mounted to Windows drives, which could potentially cause I/O issues
  5. Potential Causes: - Terminal buffer overflow due to extremely large error output - Special characters or ANSI escape sequences in the error output affecting terminal rendering - Interaction between Windows Terminal and WSL - Possible issues with Jest's output formatting when running in WSL

The most likely cause appears to be the extremely large error output from the failing test, which contained the full API response data (28,000+ characters) being repeatedly logged to the terminal, possibly overwhelming the terminal's buffer or rendering capabilities.

https://github.com/user-attachments/assets/86040c0c-1388-4ced-9905-be8df81c9048

Cheffromspace avatar Apr 20 '25 02:04 Cheffromspace

same issue on WSL

misterdojo777 avatar Jun 02 '25 11:06 misterdojo777

im on wsl2 and it most often is triggered when inserting text to the inputbox, it seems that the cursor scrolls over the inserted text and for each charachter the whole context is beeing scrolled once, i also seen the cursor "run away" behind the inserted text, some process is doing some crazy stuff here

deafsquad avatar Jun 04 '25 13:06 deafsquad

Yep, the issue is on WSL (I'm using WSL2).

Other issues on WSL: missing emojis and scrambled text when pasting.

aguyinmontreal avatar Jun 13 '25 07:06 aguyinmontreal

Same issue still happening for me on Windows 11/WSL 2. Its a massive productivity killer.

jmatser-reputable avatar Jun 16 '25 02:06 jmatser-reputable

I have this issue on macOS, in Kitty terminal.

wjakob avatar Jun 25 '25 05:06 wjakob

+1

MaximeLas avatar Oct 22 '25 15:10 MaximeLas

macOS, warp — same issue every session when using agents — x10 worse

it's a daily nightmare to deal with it 😢

art-shen avatar Nov 06 '25 16:11 art-shen