Output text has abnormal line breaks / word wrapping issues in desktop app

Open 💬 1 comment Opened Jul 2, 2026 by chenshuangjzh

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?

When using Claude Code desktop app, the output text in the chat interface exhibits abnormal line breaks and word wrapping. Words and sentences are broken at arbitrary positions, resulting in fragmented text display.

For example, instead of displaying a coherent sentence like "Nice to meet you too! How can I help you today?", the output appears as:

Nice to

meet you too

! How can I

help you today?

This makes the output very difficult to read. The issue appears to be related to CSS word-break or white-space handling in the desktop app's rendering layer. The text seems to break at nearly every word boundary or even mid-word, rather than wrapping naturally at the container edge.

This happens consistently across different responses, not just for specific content.

What Should Happen?

The output text should wrap naturally at word boundaries within the container width, maintaining readable sentence structure. Long lines should only break when they reach the edge of the text container, not at arbitrary positions within the text.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code desktop app on macOS
  2. Start a new conversation or continue an existing one
  3. Send any message that triggers a text response (e.g., "hello, nice to meet you")
  4. Observe the model's response in the chat interface
  5. Notice that the output text has abnormal line breaks, with words and sentences broken at arbitrary positions instead of wrapping naturally

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.198

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This issue appears to be a CSS rendering problem in the desktop app's chat interface. The text output seems to have incorrect word-break, overflow-wrap, or white-space CSS properties applied, causing text to break at unnatural positions.

The issue is consistently reproducible - every response from the model exhibits this abnormal line-breaking behavior. It appears to be specific to the desktop app's rendering layer, as the text content itself is correct but the visual presentation is broken.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗