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 <noreply@anthropic.com>
This commit is contained in:
yangzheli 2026-04-09 16:30:32 +08:00 committed by GitHub
parent 563383c60f
commit 52718b0f23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,6 +192,7 @@ function MessageContent_({
remarkPlugins={humanMessagePlugins.remarkPlugins}
rehypePlugins={humanMessagePlugins.rehypePlugins}
components={components}
parseIncompleteMarkdown={false}
>
{contentToDisplay}
</AIElementMessageResponse>