Skip to content

[Feature]: Allow to display messages as plain text #178

@ServeurpersoCom

Description

@ServeurpersoCom

Browser

All

Description

User messages are now rendered as plain text instead of Markdown.
This prevents Markdown from breaking when users paste code or send content that looks like reasoning blocks.

Assistant messages keep their Markdown rendering, so formatting, links and lists still work as expected.

Changes

Added isAssistant check before rendering reasoning content.

User messages displayed with whitespace-pre-wrap instead of MarkdownDisplay.

Why
Without this change, sending code or -like content as a user could break formatting or leak into the reasoning renderer.

Proposal : main...ServeurpersoCom:llama.ui:assistant-markdown-only

Steps to Reproduce

Paste any Markdown into a user message.

Paste code containing # comments or long sequences of #######.

Observe that rendering breaks or overflows to the right.

Expected Behavior

UI should display any coding work safely as plain text.

No horizontal overflow when users paste code.

Assistant responses continue to render Markdown normally.

Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions