Skip to content

Bugfix: Fix markdown table rendering issue after reasoning completes - #3643

Open
xuyaqist wants to merge 6 commits into
developfrom
xyq/bugfix_0810
Open

Bugfix: Fix markdown table rendering issue after reasoning completes#3643
xuyaqist wants to merge 6 commits into
developfrom
xyq/bugfix_0810

Conversation

@xuyaqist

@xuyaqist xuyaqist commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

修复reasoning过程中思考过程中的表格可以正常渲染,但是当输出final answer后,思考过程中的表格就不能正常渲染的问题。
image

@xuyaqist
xuyaqist requested a review from WMC001 as a code owner August 12, 2026 01:45
Copilot AI lite review requested due to automatic review settings August 12, 2026 01:45
@xuyaqist
xuyaqist requested a review from Dallas98 as a code owner August 12, 2026 01:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a frontend rendering bug where markdown tables in the reasoning content render correctly during streaming, but stop rendering as tables after the reasoning finishes and the final answer is shown. It does so by enabling GitHub Flavored Markdown parsing for the non-streaming reasoning renderer.

Changes:

  • Add remarkGfm to the MarkdownTextPrimitive renderer used when reasoning is no longer streaming (!isRunning), enabling table syntax parsing consistently.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants