feat(ui): render streaming chat markdown live instead of plain text (#106062)

Streaming assistant replies in the Control UI now render markdown live: the in-flight tail is repaired with remend (zero-dep, Apache-2.0, extracted from Vercel's Streamdown) before the existing markdown-it + DOMPurify pipeline, and open code fences stream as live-highlighted code blocks. Deletes the plain-text streaming tail path (toStreamingPlainTextHtml) and extracts an uncached render core so tail deltas stop churning the markdown LRU cache. Closes #106053
This commit is contained in:
Peter Steinberger
2026-07-12 23:11:45 -07:00
committed by GitHub
parent 0633afe6a5
commit fcb45b4400
7 changed files with 168 additions and 167 deletions
-1
View File
@@ -4566,7 +4566,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
"ui/src/components/markdown.ts: encodeBlockArtCodeBlockCopyPayload",
"ui/src/components/markdown.ts: highlightCode",
"ui/src/components/markdown.ts: md",
"ui/src/components/markdown.ts: toStreamingPlainTextHtml",
"ui/src/components/mcp-app-view.ts: buildMcpAppHostCapabilities",
"ui/src/components/mcp-app-view.ts: McpAppView",
"ui/src/components/mcp-app-view.ts: resolveMcpAppSandboxUrl",
+1 -1
View File
@@ -1181,7 +1181,7 @@
"ui/src/components/github-link-hovercard.ts": 582,
"ui/src/components/icons.ts": 701,
"ui/src/components/lobster-pet.ts": 1790,
"ui/src/components/markdown.ts": 1493,
"ui/src/components/markdown.ts": 1489,
"ui/src/components/terminal/terminal-panel.ts": 1140,
"ui/src/components/tooltip.ts": 502,
"ui/src/lib/agents/display.ts": 661,