From 52718b0f23d527240eaa301024614ad9b7bd3852 Mon Sep 17 00:00:00 2001 From: yangzheli <43645580+yangzheli@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:30:32 +0800 Subject: [PATCH] fix(frontend): disable incomplete markdown parsing for human messages (#2014) Streamdown's streaming safeguard appends closing markers (e.g. `*`) to text with unmatched markdown syntax. This causes user messages containing literal `*` (such as `99 * 87`) to display with a spurious trailing asterisk. Human messages are always complete, so the incomplete-markdown pre-processing is unnecessary. Co-authored-by: Claude Opus 4.6 --- frontend/src/components/workspace/messages/message-list-item.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/workspace/messages/message-list-item.tsx b/frontend/src/components/workspace/messages/message-list-item.tsx index 83b089ed3..a5faf4cd1 100644 --- a/frontend/src/components/workspace/messages/message-list-item.tsx +++ b/frontend/src/components/workspace/messages/message-list-item.tsx @@ -192,6 +192,7 @@ function MessageContent_({ remarkPlugins={humanMessagePlugins.remarkPlugins} rehypePlugins={humanMessagePlugins.rehypePlugins} components={components} + parseIncompleteMarkdown={false} > {contentToDisplay}