[BUG] Claude Code 2.0.63 UI rendering broken + keyboard navigation not working on Ubuntu 24.04 via SSH

Status Fixed / completed
Maintainer reply None cached
Activity 7 comments · opened Dec 9, 2025 · closed Aug 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Fresh install of Claude Code 2.0.63 on Ubuntu 24.04 via SSH has two critical issues:

  1. UI rendering completely broken on startup — All UI elements (menu items, text, ASCII art logo) render at wrong coordinates, scattered randomly across the terminal. Claude Code fails to detect terminal dimensions correctly on initial launch. Resizing the terminal window triggers re-render and fixes layout.
  1. Keyboard navigation non-functional — After fixing layout via resize, arrow keys still don't work for menu navigation (theme selector, etc.). Number keys and vim-style keys (j/k) also don't respond.

See attached screenshots showing the progression.

What Should Happen?

  1. UI should render correctly on startup, respecting terminal dimensions
  2. Arrow keys and keyboard navigation should work for menu selection

Error Messages/Logs

No error messages — the UI simply renders incorrectly and keyboard input is ignored.

Terminal diagnostics show everything is correct:
$ stty size → 52 140
$ echo $TERM → xterm-256color  
$ locale → en_US.UTF-8

Node.js receives correct key codes:
$ node -e "process.stdin.setRawMode(true); process.stdin.on('data', d => console.log([...d])); process.stdin.resume();"
Arrow up outputs: [ 27, 91, 65 ] ✓

Steps to Reproduce

  1. Fresh Ubuntu 24.04 LTS server
  2. Install Node.js 20.x via NodeSource
  3. Install Claude Code: npm install -g @anthropic-ai/claude-code@2.0.63
  4. SSH into server from macOS (iTerm2 or Terminal.app)
  5. Run claude
  6. Observe: UI is broken, text scattered across screen (Screenshot 1)
  7. Resize terminal window → layout fixes (Screenshot 2)
  8. Try arrow keys to navigate theme selector → nothing happens
  9. Downgrade: npm install -g @anthropic-ai/claude-code@2.0.62
  10. Run claude → everything works (Screenshot 3)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.62

Claude Code Version

2.0.63

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

iTerm2

Additional Information

<img width="2880" height="1558" alt="Image" src="https://github.com/user-attachments/assets/9d0d2221-236d-408f-b651-8e78d5ed99c6" />
<img width="2800" height="1566" alt="Image" src="https://github.com/user-attachments/assets/fa1710fc-81ff-40dd-a002-87f86bd369d2" />
<img width="1441" height="782" alt="Image" src="https://github.com/user-attachments/assets/7780f037-e999-44f7-84b8-70ab1231134b" />

View original on GitHub ↗

6 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8312
  2. https://github.com/anthropics/claude-code/issues/8845
  3. https://github.com/anthropics/claude-code/issues/11414

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

iMateo · 8 months ago

I've reviewed all 3 suggested issues — none of them match this bug:

  1. #8312 — UI freeze during AI processing. My issue occurs immediately on startup, before any AI interaction.
  1. #8845 — GNOME Terminal specific issue with bottom half blacked out. My issue is via SSH from macOS terminals (iTerm2/Terminal.app) with text scattered randomly across the entire screen.
  1. #11414 — File selector arrow key navigation. My issue affects the initial theme selector and all keyboard navigation is completely non-functional, not just file selector.

Key differences:

  • This is a regression in 2.0.63 — version 2.0.62 works perfectly
  • Occurs on fresh Ubuntu 24.04 via SSH
  • Two distinct bugs: broken initial rendering + keyboard navigation completely dead
  • Terminal diagnostics and Node.js key detection all work correctly

This is a new bug, not a duplicate.

TheDechev · 7 months ago

Confirming this bug persists in v2.0.76 on WSL2

Experiencing the identical issue on WSL2 (Ubuntu on Windows 11) with Claude Code v2.0.76.

Symptoms match exactly:

  1. ✅ UI renders broken on startup (ASCII art scattered, menu items diagonal)
  2. ✅ Resizing terminal fixes the layout
  3. ✅ Keyboard navigation completely dead after resize - arrow keys print ^[[A^[[B literally, Enter adds newline

Key diagnostic - Raw mode works fine in Node.js:

node -e "process.stdin.setRawMode(true); process.stdin.resume(); process.stdin.on('data', (k) => { if(k[0]===3) process.exit(); console.log([...k]); });"
# Arrow keys correctly output: [ 27, 91, 65 ], [ 27, 91, 66 ], etc.

This proves the issue is not a WSL2/Node.js limitation - raw mode is fully supported. The bug is specifically in Claude Code's Ink TUI failing to enable raw mode during initialization.

Environment:

  • Claude Code: 2.0.76
  • WSL2 Ubuntu on Windows 11
  • Node.js: v22.21.1 (via nvm, confirmed Linux binary)
  • Terminals tested: Windows Terminal (with WT_SESSION set), Tabby - same behavior in both
  • TERM=xterm-256color, terminal size 240x43

Other notes:

  • ~/.claude.json has "theme": "dark" set, but theme selector still appears (config ignored)
  • claude --print "prompt" works perfectly
  • Claude Code extension in VS Code/Cursor works perfectly
  • Debug logs show WSL detection occurring (powershell.exe -Command '$env:USERPROFILE') but no TUI/Ink initialization logs

Broken render on startup
<img width="1026" height="739" alt="Image" src="https://github.com/user-attachments/assets/9d33d7c0-5314-4da0-b640-9b9998fee120" />

Fixed layout after resize but ^[[A^[[B visible from arrow keys:

<img width="779" height="605" alt="Image" src="https://github.com/user-attachments/assets/8b9cad34-dcbb-466b-8d97-1c151cd33397" />

anasurimbo · 7 months ago

Hello.
Confirming this bug persists in v2.1.6 on Debian GNU/Linux 13 via SSH

✅ UI renders broken on startup (ASCII art scattered, menu items diagonal)
✅ Resizing terminal fixes the layout
✅ Keyboard navigation completely dead after resize - arrow keys print ^[[A^[[B literally, Enter adds newline

Terminals tested: Termius, VScode terminal.

Installed via

curl -fsSL https://claude.ai/install.sh | bash 2>&1

Also tried

2.1.5 — native build
2.0.62 — native build
2.1.5 — npm
1.0.128 — npm

The same effects

<img width="1654" height="1290" alt="Image" src="https://github.com/user-attachments/assets/de1b9206-29aa-41c2-a88d-14e9ea100765" />

Kylandomos · 7 months ago

Hello, its the same TUI glitch problem via ssh from android termiux to win 11 cc

aqilc · 2 months ago

I still can't exit my usage screen in claude code. I tried ctrl-z + "fg" and it didn't work either to help me escape it. the only workaround seems to be fully exiting and restarting. Is there any way I can get past this or if it can be fixed?

Showing cached comments. Read the full discussion on GitHub ↗