Skip to content

Markdown rendering broken in Thinking section - content collapsed into single line #419

@Clouditera-lhy

Description

@Clouditera-lhy

Description

When displaying markdown content in the Thinking section (e.g., Context Pruner documentation), the rendering is broken. Multi-line content, flow diagrams, and formatted text are collapsed into a single unreadable line.

Expected Behavior

Markdown content should render with:

  • Proper line breaks preserved
  • Headers (###) displayed correctly
  • Lists and bullet points formatted properly
  • Flow diagrams / ASCII art maintaining their structure

Actual Behavior

  • All content is squashed into one continuous line
  • Markdown syntax markers (**, ###, etc.) appear to be stripped but layout is not preserved
  • Flow descriptions become unreadable jumbled text
  • Line breaks and paragraph separations are lost

Screenshot

The Thinking section shows content like:

[TRUNCATED]` 标记 --- ### 🔧 关键设计结点 1. **对用户透明**: Context Pruner 在 UI 中被隐藏...

Instead of properly formatted multi-line content.

Environment

  • Platform: Linux
  • CLI version: 1.0.594

Additional Context

This appears to affect the rendering of any multi-line markdown content in the Thinking/extended thinking display area.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions