Skip to content

[BUG] Multi-line input causes scrambled rendering in input area #23891

Description

@stephenli-go1

Preflight Checklist

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

What's Wrong?

Description

When typing or editing multi-line input in the Claude Code input area, the rendering becomes visually scrambled. Dashed border lines bleed into the text area, and ghost/duplicate lines of text appear below the actual input. The actual input content is received correctly — the issue is purely visual.

Actual Behavior

  • Dashed border lines bleed into the input text area
  • Ghost/duplicate lines of previously typed text appear below the input
  • Cursor positioning appears incorrect visually

Screenshot

Image

Environment

  • Claude Code version: 2.1.34 (Claude Code)
  • Terminal: iTerm2 (xterm-256color)
  • Terminal size: 80x25
  • OS: macOS 14 (Sonoma), Darwin 23.6.0
  • Character encoding: UTF-8

What Should Happen?

Input text should render cleanly without visual artifacts.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in an 80x25 terminal
  2. Type a multi-line message in the input area (e.g., two or more lines)
  3. Observe garbled rendering — border lines overlapping text, duplicate text appearing

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.34

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions