Skip to content

bug: Chat message view sometimes drops newline characters #6749

@novmikvis

Description

@novmikvis
Image

In the chat UI, assistant messages returned from the API are rendered as a single paragraph with all line breaks removed. The same message shows correct \n newlines in the Edit message dialog and when copied to the clipboard, so the issue is limited to how the chat bubble renders text.

Expected result

Newlines (\n) are preserved and rendered as visual line breaks in the chat bubble, matching what appears in the Edit message dialog and when copied.

Actual result

The chat bubble collapses all single newlines into spaces and renders one continuous paragraph.

The Edit message dialog shows the correct line breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions